moveTo: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "_{10,} " to "")
m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments( \("local" or "global"\))?|Effects|Multiplayer Effects( \("local" or "global"\))?|Multiplayer Exe...)
Line 3: Line 3:
{{GameCategory|arma1|Scripting Commands}}
{{GameCategory|arma1|Scripting Commands}}


{{Command|Comments=
{{Command


| arma1 |Game name=
| arma1


|1.00|Game version=
|1.00


|arg= local |Multiplayer Arguments=
|arg= local


|eff= global |Multiplayer Effects=
|eff= global


|gr1= Unit Control |GROUP1=
|gr1= Unit Control


| Low level command to person to move to given position. |DESCRIPTION=
| Low level command to person to move to given position.


| person [[moveTo]] position |SYNTAX=
| person [[moveTo]] position


|p1= person: [[Object]] |PARAMETER1=
|p1= person: [[Object]]


|p2= position: [[PositionATL]] |PARAMETER2=
|p2= position: [[PositionATL]]


| [[Nothing]] |RETURNVALUE=
| [[Nothing]]


|x1= <code>_myAgent [[moveTo]] [[getPosATL]] [[player]];</code>
|x1= <code>_myAgent [[moveTo]] [[getPosATL]] [[player]];</code>


| [[doMove]], [[commandMove]], [[setDestination]], [[move]], [[moveToCompleted]], [[moveToFailed]], [[addWaypoint]], [[fn_vbs_doMoveEx_(VBS2)|fn_vbs_doMoveEx]] |SEEALSO=
| [[doMove]], [[commandMove]], [[setDestination]], [[move]], [[moveToCompleted]], [[moveToFailed]], [[addWaypoint]], [[fn_vbs_doMoveEx_(VBS2)|fn_vbs_doMoveEx]]
}}
}}



Revision as of 01:12, 18 January 2021


Hover & click on the images for description

Description

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

Syntax

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

Examples

Example 1:
_myAgent moveTo getPosATL player;

Additional Information

See also:
doMovecommandMovesetDestinationmovemoveToCompletedmoveToFailedaddWaypointfn_vbs_doMoveEx

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

Notes

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.

Bottom Section