{"name":"BIS_fnc_crewCount","title":"BIS fnc crewCount","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_crewCount","revid":379313,"updated":"2026-10-30T23:49:54Z","groups":["Object Manipulation"],"status":"ok","games":{"arma3":"1.08"},"since":"arma3 1.08","arma3_since":"1.08","description":"Function that counts amount of seats, both for crew and cargo seats.","syntaxes":[{"syntax":"param call BIS_fnc_crewCount","params":[{"name":"String","description":"classname of vehicle.","type_expr":"String"},{"name":"Boolean","description":"true if cargo seats should be included (see notes)","type_expr":"Boolean"}],"returns":{"type":"Number","type_expr":"Number","description":"amount of seats in vehicle."}}],"examples":[{"code":["crewCount = [\"B_Heli_Light_01_F\", false] call BIS_fnc_crewCount; // Counts all available seats excluding cargo slots. Returns 6 (see notes)."]},{"code":["crewCount = [\"B_Heli_Transport_01_F\", true] call BIS_fnc_crewCount; // Counts all available seats including cargo slots. Returns 12."]}],"see_also":["crew"],"notes":[{"user":"Tryteyker-","date":"2014-10-01T20:12:00Z","text":"This function goes through config values and as such is dependant on these. In some instances, this can lead to weird results; the user may, for example, expect the skids on the Littlebird to be cargo slots.\nHowever, in reality, they are not and as such will be counted even if the boolean value is set to false.\n\nIf the bool value is set to true, it will return the **total** amount of seats available. To get the cargo seats only, running this function twice (once with false and once with true as bool values), and then subtracting the total with crew-only will yield the cargo (F^cargo = Ftotal - Fcrew) slots.\nCrew slots include gunners and in some instances some cargo slots. The above may not work for every vehicle."}]}