---
name: "formLeader"
type: command
status: ok
groups: ["Unit Control"]
arma3_since: "0.50"
locality: {"argument": "global", "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/formLeader
revid: 369162
updated: 2024-09-03T10:34:40Z
---

# formLeader

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

Locality: arguments **global**

## Description

Returns the formation leader of a given unit.
This is often the same as the group leader, but not always, for example in cases when a unit is ordered to follow another unit.

## Syntax

```sqf
formLeader unitName
```

**Parameters:**

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

**Returns:** [Object](../topics/Object.md) - the leader of the formation is returned. If used on a dead unit, the returned value is [objNull](../commands/objNull.md)

## Examples

### Example 1

```sqf
if (formLeader player != leader player) then
{
    hint "The formation leader is different to the group leader!";
};
```

## See also

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

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