Difference between revisions of "doMove"

From Bohemia Interactive Community
Jump to navigation Jump to search
Line 64: Line 64:
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]

Revision as of 11:50, 25 March 2013

Introduced with Operation Flashpoint version 1.001.00Arguments of this scripting command have to be local to the client the command is executed onEffects of this scripting command are broadcasted over the network and happen on every computer in the network
Hover & click on the images for descriptions


Order the given unit(s) to move to the given position (without radio messages). After reaching his destination, the unit will immediately return to formation (if in a group); or order his group to form around his new position (if a group leader).


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


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

Additional Information

See also:
commandMovesetDestinationmoveTomoveaddWaypointfn_vbs_doMoveExsetExactMovement (VBS2)getExactMovement (VBS2)


Only post proven facts here. Report bugs on the Feedback Tracker and discuss on the Arma Discord or on the Forums.


Posted on February 9, 2008
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. VBS2 users can use the fn_vbs_doMoveEx function.

Bottom Section