moveTo: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\|seealso= *\[\[([^ ]+)\]\], \[\[([^ ]+)\]\]" to "|seealso= $1 $2")
m (Text replacement - "\|seealso= *\[\[([^ ]+)\]\], \[\[([^ ]+)\]\]" to "|seealso= $1 ")
Line 34: Line 34:
|x1= <code>_myAgent [[moveTo]] [[getPosATL]] [[player]];</code>
|x1= <code>_myAgent [[moveTo]] [[getPosATL]] [[player]];</code>


|seealso= [[doMove]] [[commandMove]] [[setDestination]] [[move]] [[moveToCompleted]] [[moveToFailed]], [[addWaypoint]]
|seealso= [[doMove]] [[commandMove]] [[setDestination]] [[move]] [[moveToCompleted]] [[moveToFailed]] [[addWaypoint]]
}}
}}



Revision as of 18:37, 20 January 2022

Hover & click on the images for description

Description

Description:
Low level command to person to move to given position.
Groups:
Unit Control

Syntax

Syntax:
unit moveTo position
Parameters:
unit: Object
position: PositionATL
Return Value:
Nothing

Examples

Example 1:
_myAgent moveTo getPosATL player;

Additional Information

See also:
doMove commandMove setDestination move moveToCompleted moveToFailed addWaypoint

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note
Posted on August 14, 2010 - 05:44
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.