{"name":"BIS_fnc_invRemove","title":"BIS fnc invRemove","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_invRemove","revid":349422,"updated":"2023-11-08T16:27:33Z","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":"Removes from inventory. Given number of items. Returns actually removed items count.","syntaxes":[{"syntax":"[object,class,count] call BIS_fnc_invRemove","params":[{"name":"object","type":"Object","type_expr":"Object"},{"name":"class","type":"String","description":"item class to be added","type_expr":"String"},{"name":"count","type":"Number","optional":true,"default":"1","description":"number of items to be removed","type_expr":"Number","text":"count: Number - (Optional, default 1) number of items to be removed"}],"returns":{"type":"Number","type_expr":"Number","description":"number of items which were removed"}}],"examples":[{"code":["[player,\"someClass\",5] call BIS_fnc_invRemove;"]}],"see_also":["BIS_fnc_invCodeToArray","BIS_fnc_invString","BIS_fnc_invSlots","BIS_fnc_invSlotsEmpty","BIS_fnc_invSlotType","BIS_fnc_invAdd"]}