---
name: "expectedDestination"
type: command
status: ok
groups: ["Unit Control", "AI Behaviour"]
arma3_since: "0.50"
locality: {"argument": "local", "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/expectedDestination
revid: 377689
updated: 2026-01-02T09:03:08Z
---

# expectedDestination

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

Locality: arguments **local**

## Description

Return expected destination of unit as an array.

## Syntax

```sqf
expectedDestination person
```

**Parameters:**

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

**Returns:** [Array](../topics/Array.md) with [destination, planningMode, forceReplan]
- destination: [PositionAGL](../topics/Position.md#positionagl)
- planningMode: [String](../topics/String.md) - can be one of:
  - "DoNotPlan" - used when not moving
  - "DoNotPlanFormation" - used in formation when simple path testing is used
  - "LEADER PLANNED" - used for formation leader (full path finding used)
  - "LEADER DIRECT" - used for DirectGo (like getin, supply)
  - "FORMATION PLANNED" - used in formation when full path finding is used
  - "VEHICLE PLANNED" - used for vehicle driver
- forceReplan: [Boolean](../topics/Boolean.md) -  specifies if path replanning was forced (through [setDestination](../commands/setDestination.md))

## Examples

### Example 1

```sqf
_data = expectedDestination player;
```

## See also

[setDestination](../commands/setDestination.md) · [getUnitState](../commands/getUnitState.md)

## Community notes

**Donnervogel** — 2007-03-03

For AI units I have found the following values: *planningMode* is "LEADER PLANNED" when the unit is ordered by the group leader to go somewhere or if the unit is the group leader and it follows a waypoint. Otherwise *planningMode* it is "DoNotPlan". Units moving in formation have "DoNotPlan" as long as they don't receive orders by the group leader. Units also have "DoNotPlan" when they don't move. Units executing special formation tasks like engaging or return to formation have "FORMATION PLANNED" as long they have not fulfilled the task.

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