---
name: "setEffectiveCommander"
type: command
status: ok
groups: ["Unit Control"]
arma3_since: "1.96"
locality: {"argument": "global", "effect": "local", "server_exec": false}
source: https://community.bistudio.com/wiki/setEffectiveCommander
revid: 322840
updated: 2022-06-26T21:14:08Z
---

# setEffectiveCommander

*Command · Unit Control · Arma 3 v1.96*

Locality: arguments **global** · effect **local**

## Description

Sets [effectiveCommander](../commands/effectiveCommander.md) of the given vehicle. Effective commander is the person who commands the vehicle, i.e. gives commands to the driver.
Every time a person gets in or out of a vehicle, effective commander eligibility is recalculated by the engine based on the current [crew](../commands/crew.md).
Use this command to force desired effective commander.

## Syntax

```sqf
vehicle setEffectiveCommander person
```

**Parameters:**

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

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

## Examples

### Example 1

```sqf
vehicle player setEffectiveCommander player;
```

## Multiplayer

In multiplayer, execute globally.

## See also

[effectiveCommander](../commands/effectiveCommander.md) · [commander](../commands/commander.md) · [vehicleMoveInfo](../commands/vehicleMoveInfo.md)

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