{"name":"BIS_fnc_crewCount","operator":null,"title":"BIS fnc crewCount","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_crewCount","revid":349180,"updated":"2023-11-08T14:50:38Z","groups":["Object Manipulation"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"1.08"}],"since":{"game":"arma3","name":"Arma 3","version":"1.08"},"arma3_since":"1.08","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"Function that counts amount of seats, both for crew and cargo seats.","syntaxes":[{"syntax":"param call BIS_fnc_crewCount","since":null,"effect":null,"exec":null,"params":[{"name":"String","type":null,"optional":false,"default":null,"description":"classname of vehicle.","types":["String"],"since":null,"text":"String - classname of vehicle."},{"name":"Boolean","type":null,"optional":false,"default":null,"description":"true if cargo seats should be included (see notes)","types":["Boolean"],"since":null,"text":"Boolean - true if cargo seats should be included (see notes)"}],"returns":{"type":"Number","types":["Number"],"description":"amount of seats in vehicle.","text":"Number - amount of seats in vehicle."}}],"examples":[{"text":"```sqf\ncrewCount = [\"B_Heli_Light_01_F\", false] call BIS_fnc_crewCount; // Counts all available seats excluding cargo slots. Returns 6 (see notes).\n```","code":["crewCount = [\"B_Heli_Light_01_F\", false] call BIS_fnc_crewCount; // Counts all available seats excluding cargo slots. Returns 6 (see notes)."]},{"text":"```sqf\ncrewCount = [\"B_Heli_Transport_01_F\", true] call BIS_fnc_crewCount; // Counts all available seats including cargo slots. Returns 12.\n```","code":["crewCount = [\"B_Heli_Transport_01_F\", true] call BIS_fnc_crewCount; // Counts all available seats including cargo slots. Returns 12."]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["crew"],"notes":[],"categories":["Arma 3: Functions","Arma 3: New Functions","Function Group: Object Manipulation","Functions","Introduced with Arma 3 version 1.08"],"docblock":null,"filled_from_docblock":[]}