DreadedEntity
The above note is only true of units which group leader is not the player. Player-squad will remain in position until given another order (A3 v2.08.149102)
Results appear below as you type; use the arrow keys to move through them.
Command · Markdown · JSON · original wiki page
Order the given unit(s) to move to the given position (without radio messages). Upon reaching its destination, if it is the group leader it will order the group to form around it's new position. If it is not the leader, it will immediately be ordered to return to formation by the group leader and begin moving back to the group. Use doStop to stop units returning to formation. moveToCompleted will return true when a unit issued this command reaches its destination.
unit(s) doMove position
Parameters:
Returns: Nothing
_soldier1 doMove (position _officer);
this doMove (getMarkerPos "Marker1");
commandMove · setDestination · moveTo · move · addWaypoint
The above note is only true of units which group leader is not the player. Player-squad will remain in position until given another order (A3 v2.08.149102)
If you need your script to halt until the unit has reached it's destination, waitUntil and moveToCompleted will come in handy:
_unit doMove _pos;
waitUntil {moveToCompleted _unit};
This also works with commandMove
Seems to use PositionATL, which may be important if the destination is above a building's 1st floor.