moveTo: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "Category:Scripting Commands ArmA2" to "Category:Scripting Commands Arma 2")
m (Add example)
Line 18: Line 18:
____________________________________________________________________________________________
____________________________________________________________________________________________


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


|p1= person: [[Object]] |PARAMETER1=
|p1= person: [[Object]] |PARAMETER1=
|p2= position: [[PositionATL]] |PARAMETER2=
|p2= position: [[PositionATL]] |PARAMETER2=


| [[Nothing]] |RETURNVALUE=
| [[Nothing]] |RETURNVALUE=
____________________________________________________________________________________________
 
|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]] |SEEALSO=
}}
}}


Line 34: Line 35:
<!-- Note Section BEGIN -->
<!-- Note Section BEGIN -->


<!-- Note Section END -->
</dl>
<dl class="command_description">
<!-- Note Section BEGIN -->
<dd class="notedate">Posted on August 14, 2010 - 05:44
<dd class="notedate">Posted on August 14, 2010 - 05:44
<dt class="note">'''[[User:Rübe|Rübe]]'''<dd class="note">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.
<dt class="note">'''[[User:Rübe|Rübe]]'''<dd class="note">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.
Line 47: Line 43:
[[Category:Scripting Commands Arma 2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting_Commands Take On Helicopters|{{uc:{{PAGENAME}}}}]]

Revision as of 18:20, 11 March 2020


-wrong parameter ("Arma") defined!-1.00
Hover & click on the images for description

Description

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

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