---
name: "moveTo"
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/moveTo
revid: 379452
updated: 2026-10-31T00:08:24Z
---

# moveTo

*Command · Unit Control · Arma 3 v0.50 · introduced in Armed Assault v1.00*

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

## Description

Low level command to person to move to given position. It is good to check first if AI pilot unit state is COMPLETED [moveToCompleted](../commands/moveToCompleted.md) first as this command will set unit into WAIT state waiting for instruction, but only if the unit has COMPLETED.

## Syntax

```sqf
unit moveTo position
```

**Parameters:**

- `unit`: [Object](../topics/Object.md)
- `position`: [PositionATL](../topics/Position.md#positionatl)

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

## Examples

### Example 1

```sqf
_myAgent moveTo getPosATL player;
```

## See also

[doMove](../commands/doMove.md) · [commandMove](../commands/commandMove.md) · [setDestination](../commands/setDestination.md) · [move](../commands/move.md) · [moveToCompleted](../commands/moveToCompleted.md) · [moveToFailed](../commands/moveToFailed.md) · [addWaypoint](../commands/addWaypoint.md)

## Community notes

**Rübe** — 2010-08-14

moveTo is a low-level command used in [FSM](../topics/FSM.md) called with doFSM or commandFSM. See [doFSM](../commands/doFSM.md) for more information about this. Use [doMove](../commands/doMove.md) everywhere else - even in FSM executed with execFSM.

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