doMove: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 41: Line 41:
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.
</dd>
</dd>
<dd class="notedate">Posted on February 3, 2009</dd>
<dt class="note">'''[[User:General_Barron|General Barron]]'''</dt>
<dd class="note">
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.
</dd>


<!-- Note Section END -->
<!-- Note Section END -->

Revision as of 04:37, 4 February 2009

Hover & click on the images for description

Description

Description:
Order the given unit(s) to move to the given position (without radio messages).
Groups:
Uncategorised

Syntax

Syntax:
unit(s) doMove position
Parameters:
unit(s): Object or Array
position: Array - format Position
Return Value:
Nothing

Examples

Example 1:
_soldier1 doMove (position officer)
Example 2:
this doMove (getMarkerPos "Marker1")

Additional Information

See also:
commandMove

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

Bottom Section