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