moveTo: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Some wiki formatting)
m (Text replacement - ">Posted on August ([0-9]{2}), ([0-9]{4})" to ">Posted on $2-08-$1")
 
(19 intermediate revisions by 2 users not shown)
Line 2: Line 2:


|game1= arma1
|game1= arma1
|version1= 1.00
|game2= arma2
|version2= 1.00
|game3= arma2oa
|version3= 1.50
|game4= tkoh
|version4= 1.00


|version1= 1.00
|game5= arma3
|version5= 0.50


|arg= local
|arg= local
Line 13: Line 24:
|descr= Low level command to person to move to given position.
|descr= Low level command to person to move to given position.


|s1= person [[moveTo]] position
|s1= unit [[moveTo]] position


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


|p2= position: [[PositionATL]]
|p2= position: [[Array]] format [[Position#PositionATL|PositionATL]]


|r1= [[Nothing]]
|r1= [[Nothing]]


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


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


<dl class="command_description">
<dl class="command_description">
<!-- Note Section BEGIN -->


<dd class="notedate">Posted on August 14, 2010 - 05:44</dd>
<dt></dt>
<dd class="notedate">Posted on 2010-08-14 - 05:44</dd>
<dt class="note">[[User:Rübe|Rübe]]</dt>
<dt class="note">[[User:Rübe|Rübe]]</dt>
<dd class="note">
<dd class="note">
Line 35: Line 46:
</dd>
</dd>


<!-- Note Section END -->
</dl>
</dl>
{{GameCategory|ofpe|Scripting Commands}}
{{GameCategory|arma1|Scripting Commands}}
{{GameCategory|arma2|Scripting Commands}}
{{GameCategory|arma3|Scripting Commands}}
{{GameCategory|tkoh|Scripting Commands}}

Latest revision as of 23:59, 13 May 2023

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: 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.