doMove: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\[\[Category:Scripting Commands OFP 1.[4-9]{2}(\|(\{\{uc:\{\{PAGENAME\}\}\}\}|#|[A-Z]+))?\]\] " to "") |
Lou Montana (talk | contribs) m (Text replacement - " <dd class="notedate">" to " <dt><dt> <dd class="notedate">") |
||
Line 30: | Line 30: | ||
<!-- Note Section BEGIN --> | <!-- Note Section BEGIN --> | ||
<dt><dt> | |||
<dd class="notedate">Posted on February 9, 2008</dd> | <dd class="notedate">Posted on February 9, 2008</dd> | ||
<dt class="note">[[User:Kronzky|Kronzky]]</dt> | <dt class="note">[[User:Kronzky|Kronzky]]</dt> | ||
Line 36: | Line 36: | ||
If doMove is to be used in conjunction with waypoint behavior commands (e.g. [[setSpeedMode]]), then those have to be issued ''after'' the move command to have an effect. Otherwise the move will be done with the default settings. | If doMove is to be used in conjunction with waypoint behavior commands (e.g. [[setSpeedMode]]), then those have to be issued ''after'' the move command to have an effect. Otherwise the move will be done with the default settings. | ||
<dt><dt> | |||
<dd class="notedate">Posted on February 3, 2009</dd> | <dd class="notedate">Posted on February 3, 2009</dd> | ||
<dt class="note">[[User:General_Barron|General Barron]]</dt> | <dt class="note">[[User:General_Barron|General Barron]]</dt> |
Revision as of 00:11, 6 April 2021
Description
- Description:
- Description needed
- Groups:
- Unit Control
Syntax
- Syntax:
- Syntax needed
- Parameters:
- unit(s): Object or Array
- position: Array - format Position
- Return Value:
- Return value needed
Examples
- Example 1:
_soldier1 doMove (position _officer);
- Example 2:
this doMove (getMarkerPos "Marker1");
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
- Posted on February 9, 2008
- Kronzky
- If doMove is to be used in conjunction with waypoint behavior commands (e.g. setSpeedMode), then those have to be issued after the move command to have an effect. Otherwise the move will be done with the default settings.
- Posted on February 3, 2009
- General Barron
- If a unit is part of a group, and is not the leader, the unit will fall back into formation soon after the domove is completed. This does not happen for units that are in a group alone (because they are their own leader). There is no single command to get a unit to move to a position and stay there. The best way to do this is to issue a domove, then wait for the unit to reach his destination, then disable his movement AI.