Arma 3 Scripting

Command in Unit Control

moveTo

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

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:

Returns: Nothing

Examples

Example 1

_myAgent moveTo getPosATL player;

See also

doMove · commandMove · setDestination · move · moveToCompleted · moveToFailed · addWaypoint