---
name: "doMove"
type: command
status: ok
groups: ["Unit Control"]
arma3_since: "0.50"
locality: {"argument": "local", "effect": "global", "server_exec": false}
source: https://community.bistudio.com/wiki/doMove
revid: 379415
updated: 2026-10-31T00:03:29Z
---

# doMove

*Command · Unit Control · Arma 3 v0.50 · introduced in Operation Flashpoint v1.00*

Locality: arguments **local** · effect **global**

## Description

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](../commands/doStop.md) to stop units returning to formation. [moveToCompleted](../commands/moveToCompleted.md) will return true when a unit issued this command reaches its destination.

## Syntax

```sqf
unit(s) doMove position
```

**Parameters:**

- `unit(s)`: [Object](../topics/Object.md) or [Array](../topics/Array.md) of [Objects](../topics/Object.md)
- `position`: [Position](../topics/Position.md)

**Returns:** [Nothing](../topics/Nothing.md)

## Examples

### Example 1

```sqf
_soldier1 doMove (position _officer);
```

### Example 2

```sqf
this doMove (getMarkerPos "Marker1");
```

## See also

[commandMove](../commands/commandMove.md) · [setDestination](../commands/setDestination.md) · [moveTo](../commands/moveTo.md) · [move](../commands/move.md) · [addWaypoint](../commands/addWaypoint.md)

## Community notes

**Kronzky** — 2008-02-09

If doMove is to be used in conjunction with waypoint behavior commands (e.g. [setSpeedMode](../commands/setSpeedMode.md)), then those have to be issued *after* the move command to have an effect. Otherwise the move will be done with the default settings.

---

**General_Barron** — 2009-02-03

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.

---

**DreadedEntity** — 2022-04-02

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)

---

**DreadedEntity** — 2022-04-02

If you need your script to halt until the unit has reached it's destination, [waitUntil](../commands/waitUntil.md) and [moveToCompleted](../commands/moveToCompleted.md) will come in handy:

```sqf
_unit doMove _pos;
waitUntil {moveToCompleted _unit};
```

This also works with [commandMove](../commands/commandMove.md)

---

**Waffle SS.** — 2022-07-25

Seems to use PositionATL, which may be important if the destination is above a building's 1st floor.

<sub>Source: [BI Community Wiki — doMove](https://community.bistudio.com/wiki/doMove) (revision 379415).</sub>
