Jump to content
Sign in to follow this  
.kju

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

Recommended Posts

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)

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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. :|

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×