BIS_fnc_crewCount

From Bohemia Interactive Community
Revision as of 22:04, 1 October 2014 by Tryteyker (talk | contribs) (Added params, syntax, examples.)
Jump to navigation Jump to search


Hover & click on the images for description

Description

Description:
Function that counts amount of seats, both for crew and cargo seats.
Execution:
call
Groups:
Uncategorised

Syntax

Syntax:
param call BIS_fnc_crewCount;
Parameters:
String - Classname of vehicle.
Boolean - True if cargo seats should be included (see notes)
Return Value:
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.

Additional Information

See also:
See also needed

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note

Notes

Bottom Section