Arma 3 Scripting

Command in Unit Control

moveToCompleted

Also available as Markdown and JSON, or read the original wiki page.

Description

Check if latest low level moveTo command is finished. Returns true if given AI pilot unit state == COMPLETED

Syntax

moveToCompleted person

Parameters:

Returns: Boolean

Examples

Example 1

_isCompleted = moveToCompleted _unit;

See also

moveTo · moveToFailed

Community notes

DreadedEntity

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};