Arma 3 Scripting

Function in Object Manipulation

BIS_fnc_crewCount

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

Description

Function that counts amount of seats, both for crew and cargo seats.

Syntax

param call BIS_fnc_crewCount

Parameters:

Returns: Number - amount of seats in vehicle.

Examples

Example 1

crewCount = ["B_Heli_Light_01_F", false] call BIS_fnc_crewCount; // Counts all available seats excluding cargo slots. Returns 6 (see notes).

Example 2

crewCount = ["B_Heli_Transport_01_F", true] call BIS_fnc_crewCount; // Counts all available seats including cargo slots. Returns 12.

See also

crew