---
name: "formationLeader"
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/formationLeader
revid: 369160
updated: 2024-09-03T10:34:40Z
---

# formationLeader

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

## Description

Return leader of the formation.

## Syntax

```sqf
formationLeader unitName
```

**Parameters:**

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

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

## Examples

### Example 1

```sqf
if (formationLeader player != leader player) then
{
    hint "Formation leader is not the group leader.";
};
```

## See also

[commandFollow](../commands/commandFollow.md) · [doFollow](../commands/doFollow.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 — formationLeader](https://community.bistudio.com/wiki/formationLeader) (revision 369160).</sub>
