Description
Low level command to person to move to given position. It is good to check first if AI pilot unit state is COMPLETED moveToCompleted first as this command will set unit into WAIT state waiting for instruction, but only if the unit has COMPLETED.
Syntax
unit moveTo position
Parameters:
unit: Objectposition: PositionATL
Returns: Nothing
Examples
Example 1
_myAgent moveTo getPosATL player;
See also
doMove · commandMove · setDestination · move · moveToCompleted · moveToFailed · addWaypoint