Results 1 to 4 of 4

Thread: setWaypointCompletionRadius or how to make AI complete before reaching the exact pos?

  1. #1

    Question setWaypointCompletionRadius or how to make AI complete before reaching the exact pos?

    Source: BIKI: setWaypointCompletionRadius

    While the descriptions says:
    The completion radius allows units to call the waypoint completed once they are inside of the given circle.

    However the note at the end tells more truth about it:
    ...
    The way it works now (is that) it is (set) complete(d) once (the) unit is inside (the radius) and
    does not think it would be reasonable to move any closer (to the exact waypoint position).
    So far setWaypointCompletionRadius seems to do nothing for my infantry only group + AI only group +
    single unit group to be precise.

    Any ideas to make them also complete their MOVE waypoint when close enough?
    (aka inside the completion radius)

  2. #2
    trigger with center at the waypoint location, which says remove the waypoint as soon as any unit inside the group (or the group leader) enters the area, automatically making said group advance to the next waypoint

  3. #3
    Thanks. Good idea.

    Would be nice to avoid to spawn a thread for each group / done one thread to iterate
    through all groups etc. Yet seems like that's the only way to. :|

  4. #4
    In case someone needs this too:
    http://pastebin.jonasscholz.de/1286

    Notes
    1) It's an sync system where an outside script must add an unit (group leader for example) that should get handled.
    2) It uses a saved vehicle type var on the group. You may want to replace this with a typeOf _unit in your case.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •