---
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: 377530
updated: 2026-01-02T06:53:13Z
---

# 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)

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