{"name":"BIS_fnc_invSlots","title":"BIS fnc invSlots","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_invSlots","revid":363571,"updated":"2024-04-07T08:41:24Z","groups":["Inventory"],"status":"ok","games":{"arma2":"1.00","arma2oa":"1.50","tkoh":"1.00","arma3":"0.50"},"since":"arma2 1.00","arma3_since":"0.50","description":"Returns config inventory slots of given unit (total numbers of available slots in array).","syntaxes":[{"syntax":"[object] call BIS_fnc_invSlots","params":[{"name":"object","type":"Object","type_expr":"Object"}],"returns":{"type":"Array","type_expr":"Array","description":"array with total available slots of all types that are given by config"}}],"examples":[{"text":"```sqf\n[player] call BIS_fnc_invSlots;    // returns [1,1,1,8,12,1,0,12] for \"B_T_Recon_TL_F\" class\n                                // means: 1 x WeaponSlotPrimary, 1 x WeaponSlotHangun, ... , 12 x WeaponSlotInventory\n```","code":["[player] call BIS_fnc_invSlots;\t// returns [1,1,1,8,12,1,0,12] for \"B_T_Recon_TL_F\" class\n\t\t\t\t\t\t\t\t// means: 1 x WeaponSlotPrimary, 1 x WeaponSlotHangun, ... , 12 x WeaponSlotInventory"]}],"see_also":["BIS_fnc_invRemove","BIS_fnc_invCodeToArray","BIS_fnc_invString","BIS_fnc_invSlotsEmpty","BIS_fnc_invSlotType","BIS_fnc_invAdd"]}