moveTo: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(locality)
No edit summary
 
(43 intermediate revisions by 3 users not shown)
Line 1: Line 1:
[[Category:Scripting Commands|MOVETO]]
{{RV|type=command
[[Category:Scripting Commands OFP Elite |MOVETO]]
[[Category:Scripting Commands ArmA|MOVETO]]


{{Command|= Comments
|game1= arma1
____________________________________________________________________________________________
|version1= 1.00


| arma |= Game name
|game2= arma2
|version2= 1.00


|1.00|= Game version
|game3= arma2oa
|version3= 1.50


|arg= local |= Arguments in MP
|game4= tkoh
|version4= 1.00


|eff= global |= Effects in MP
|game5= arma3
____________________________________________________________________________________________
|version5= 0.50


| Low level command to person to move to given position. |= Description
|arg= local
____________________________________________________________________________________________


| person '''moveTo''' position |= Syntax
|eff= global


|p1= person: [[Object]] |= Parameter 1
|gr1= Unit Control
|p2= position: [[PositionATL]] |= Parameter 2


| [[Nothing]] |= Return value
|descr= 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.
____________________________________________________________________________________________


| [[doMove]], [[commandMove]], [[setDestination]], [[move]], [[moveToCompleted]], [[moveToFailed]], [[addWaypoint]], [[fn_vbs_doMoveEx_(VBS2)|fn_vbs_doMoveEx]] |= See also
|s1= unit [[moveTo]] position


|p1= unit: [[Object]]
|p2= position: [[Array]] format [[Position#PositionATL|PositionATL]]
|r1= [[Nothing]]
|x1= <sqf>_myAgent moveTo getPosATL player;</sqf>
|seealso= [[doMove]] [[commandMove]] [[setDestination]] [[move]] [[moveToCompleted]] [[moveToFailed]] [[addWaypoint]]
}}
}}


<h3 style="display:none">Notes</h3>
<dl class="command_description">
<dl class="command_description">
<!-- Note Section BEGIN -->


<!-- Note Section END -->
<dt></dt>
</dl>
<dd class="notedate">Posted on 2010-08-14 - 05:44</dd>
<dt class="note">[[User:Rübe|Rübe]]</dt>
<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.
</dd>


<dl class="command_description">
<!-- Note Section BEGIN -->
<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.
<!-- Note Section END -->
</dl>
</dl>
<h3 style="display:none">Bottom Section</h3>
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]]

Latest revision as of 13:31, 19 October 2024

Hover & click on the images for description

Description

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.
Groups:
Unit Control

Syntax

Syntax:
unit moveTo position
Parameters:
unit: Object
position: Array format 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 2010-08-14 - 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.