Arma 3 Scripting

commander

  • Global argument
  • Arma 3 v0.50
  • First in Operation Flashpoint v1.00

Command · Markdown · JSON · 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