Arma 3 Scripting

moveTo

  • Local argument
  • Global effect
  • Arma 3 v0.50
  • First in Armed Assault v1.00

Command · Markdown · JSON · 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

Community notes

Rübe

moveTo is a low-level command used in FSM called with doFSM or commandFSM. See doFSM for more information about this. Use doMove everywhere else - even in FSM executed with execFSM.