moveTo: Difference between revisions
Jump to navigation
Jump to search
m (formatting) |
Killzone Kid (talk | contribs) No edit summary |
||
(18 intermediate revisions by one other user not shown) | |||
Line 2: | Line 2: | ||
|game1= arma1 | |game1= arma1 | ||
|version1= 1.00 | |version1= 1.00 | ||
|game2= arma2 | |game2= arma2 | ||
|version2= 1.00 | |version2= 1.00 | ||
|game3= arma2oa | |game3= arma2oa | ||
|version3= 1.50 | |||
|version3= 1. | |||
|game4= tkoh | |game4= tkoh | ||
|version4= 1.00 | |version4= 1.00 | ||
|game5= arma3 | |game5= arma3 | ||
|version5= 0.50 | |version5= 0.50 | ||
Line 27: | Line 22: | ||
|gr1= Unit Control | |gr1= Unit Control | ||
|descr= Low level command to person to move to given position. | |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. | ||
|s1= unit [[moveTo]] position | |s1= unit [[moveTo]] position | ||
Line 33: | Line 28: | ||
|p1= unit: [[Object]] | |p1= unit: [[Object]] | ||
|p2= position: [[PositionATL]] | |p2= position: [[Array]] format [[Position#PositionATL|PositionATL]] | ||
|r1= [[Nothing]] | |r1= [[Nothing]] | ||
|x1= < | |x1= <sqf>_myAgent moveTo getPosATL player;</sqf> | ||
|seealso= [[doMove]] | |seealso= [[doMove]] [[commandMove]] [[setDestination]] [[move]] [[moveToCompleted]] [[moveToFailed]] [[addWaypoint]] | ||
}} | }} | ||
<dl class="command_description"> | <dl class="command_description"> | ||
<dd class="notedate">Posted on | |||
<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"> | ||
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. | 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> | </dd> | ||
</dl> | </dl> |
Latest revision as of 13:31, 19 October 2024
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:
Additional Information
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
Categories:
- Scripting Commands
- Introduced with Armed Assault version 1.00
- ArmA: Armed Assault: New Scripting Commands
- ArmA: Armed Assault: Scripting Commands
- Arma 2: Scripting Commands
- Arma 2: Operation Arrowhead: Scripting Commands
- Take On Helicopters: Scripting Commands
- Arma 3: Scripting Commands
- Command Group: Unit Control
- Scripting Commands: Global Effect