---
name: "moveToCompleted"
type: command
status: ok
groups: ["Unit Control"]
arma3_since: "0.50"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/moveToCompleted
revid: 369921
updated: 2024-10-19T12:27:30Z
---

# moveToCompleted

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

## Description

Check if latest low level moveTo command is finished. Returns true if given AI pilot unit state == COMPLETED

## Syntax

```sqf
moveToCompleted person
```

**Parameters:**

- `person`: [Object](../topics/Object.md)

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

## Examples

### Example 1

```sqf
_isCompleted = moveToCompleted _unit;
```

## See also

[moveTo](../commands/moveTo.md) · [moveToFailed](../commands/moveToFailed.md)

## Community notes

**DreadedEntity** — 2022-04-02

This command can also check the status of [doMove](../commands/doMove.md) and [commandMove](../commands/commandMove.md) (A3 2.08.149102)
This is handy to make your script wait until a unit has moved to some position:

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

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