---
name: "commandFollow"
type: command
status: ok
groups: ["Unit Control"]
arma3_since: "0.50"
locality: {"argument": "local", "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/commandFollow
revid: 370900
updated: 2025-02-21T10:44:32Z
---

# commandFollow

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

Locality: arguments **local**

## Description

Order the given unit(s) to follow another from his own group (via radio).
It can also be used to resume unit formation after e.g [doStop](../commands/doStop.md).

## Syntax

```sqf
unit commandFollow unitLead
```

**Parameters:**

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

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

## Examples

### Example 1

```sqf
_soldier1 commandFollow _soldier2;
```

### Example 2

```sqf
(units group _leader - [_leader]) commandFollow _leader; // returns all the units (but the leader) to formation
```

## See also

[doFollow](../commands/doFollow.md) · [formationLeader](../commands/formationLeader.md) · [formLeader](../commands/formLeader.md) · [isFormationLeader](../commands/isFormationLeader.md) · [leader](../commands/leader.md) · [selectLeader](../commands/selectLeader.md) · [setLeader](../commands/setLeader.md)

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