{"name":"BIS_fnc_removeVirtualMagazineCargo","title":"BIS fnc removeVirtualMagazineCargo","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_removeVirtualMagazineCargo","revid":363530,"updated":"2024-04-03T23:02:44Z","groups":["Inventory"],"status":"ok","games":{"arma3":"1.24"},"since":"arma3 1.24","arma3_since":"1.24","description":"Remove virtual magazines from an object (e.g., ammo box). Virtual items can be selected in the Arsenal.","syntaxes":[{"syntax":"[object, magClasses, removeGlobally] call BIS_fnc_removeVirtualMagazineCargo","params":[{"name":"object","type":"Object","description":"object from which items will be removed","type_expr":"Object"},{"name":"magClasses","type":"Boolean, String or Array of Strings","description":"magazine classes","type_expr":"Boolean | String | Array<String>"},{"name":"removeGlobally","type":"Boolean","optional":true,"default":"false","description":"true to remove items globally","type_expr":"Boolean","text":"removeGlobally: Boolean - (Optional, default false) true to remove items globally"}],"returns":{"type_expr":"Array<Array>","text":"Array of Arrays of all virtual items in objects's space in format [items, weapons, magazines, backpacks]"}}],"examples":[{"code":["[BIS_ammoBox, [\"class_1\", \"class_2\"], true] call BIS_fnc_removeVirtualMagazineCargo;"]}],"see_also":["Arsenal","BIS_fnc_addVirtualBackpackCargo","BIS_fnc_addVirtualItemCargo","BIS_fnc_addVirtualMagazineCargo","BIS_fnc_addVirtualWeaponCargo","BIS_fnc_arsenal","BIS_fnc_getVirtualBackpackCargo","BIS_fnc_getVirtualItemCargo","BIS_fnc_getVirtualMagazineCargo","BIS_fnc_getVirtualWeaponCargo","BIS_fnc_removeVirtualBackpackCargo","BIS_fnc_removeVirtualItemCargo","BIS_fnc_removeVirtualWeaponCargo"]}