This command can also check the status of doMove and commandMove (A3 2.08.149102) This is handy to make your script wait until a unit has moved to some position:
waitUntil {moveToCompleted _unit};
Also available as Markdown and JSON, or read the original wiki page.
Check if latest low level moveTo command is finished. Returns true if given AI pilot unit state == COMPLETED
moveToCompleted person
Parameters:
person: ObjectReturns: Boolean
_isCompleted = moveToCompleted _unit;
This command can also check the status of doMove and commandMove (A3 2.08.149102) This is handy to make your script wait until a unit has moved to some position:
waitUntil {moveToCompleted _unit};