Arma 3 Scripting

Command in Object Manipulation

commander

Also available as Markdown and JSON, or read the original wiki page.

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.

Syntax

commander vehicle

Parameters:

Returns: Object - 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

moveOut commander _tank;

Example 2

Detect if player is in commander turret of a vehicle:

_isVehicleCommander = player isEqualTo commander objectParent player;

See also

driver · gunner · crew · currentPilot · effectiveCommander