---
name: "commander"
type: command
status: ok
groups: ["Object Manipulation"]
arma3_since: "0.50"
locality: {"argument": "global", "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/commander
revid: 363370
updated: 2024-03-28T10:39:29Z
---

# commander

*Command · Object Manipulation · Arma 3 v0.50 · introduced in Operation Flashpoint v1.00*

Locality: arguments **global**

## Description

In Operation Flashpoint it returns the commander of a vehicle. Since Armed Assault it returns the primary observer. The commander of a vehicle can be found with [effectiveCommander](../commands/effectiveCommander.md).

## Syntax

```sqf
commander vehicle
```

**Parameters:**

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

**Returns:** [Object](../topics/Object.md) - the unit sitting in the commander place is returned. If vehicle is not a vehicle but a person, the person is returned.

## Examples

### Example 1

```sqf
moveOut commander _tank;
```

### Example 2

Detect if player is in commander turret of a vehicle:

```sqf
_isVehicleCommander = player isEqualTo commander objectParent player;
```

## See also

[driver](../commands/driver.md) · [gunner](../commands/gunner.md) · [crew](../commands/crew.md) · [currentPilot](../commands/currentPilot.md) · [effectiveCommander](../commands/effectiveCommander.md)

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