{"name":"BIS_fnc_removeVirtualMagazineCargo","operator":null,"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","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"1.24"}],"since":{"game":"arma3","name":"Arma 3","version":"1.24"},"arma3_since":"1.24","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"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","since":null,"effect":null,"exec":null,"params":[{"name":"object","type":"Object","optional":false,"default":null,"description":"object from which items will be removed","types":["Object"],"since":null,"text":"object: Object - object from which items will be removed"},{"name":"magClasses","type":"Boolean, String or Array of Strings","optional":false,"default":null,"description":"magazine classes","types":["Boolean","String","Array"],"since":null,"text":"magClasses: Boolean, String or Array of Strings - magazine classes"},{"name":"removeGlobally","type":"Boolean","optional":true,"default":"false","description":"true to remove items globally","types":["Boolean"],"since":null,"text":"removeGlobally: Boolean - (Optional, default false) true to remove items globally"}],"returns":{"type":null,"types":["Array"],"description":null,"text":"Array of Arrays of all virtual items in objects's space in format [items, weapons, magazines, backpacks]"}}],"examples":[{"text":"```sqf\n[BIS_ammoBox, [\"class_1\", \"class_2\"], true] call BIS_fnc_removeVirtualMagazineCargo;\n```","code":["[BIS_ammoBox, [\"class_1\", \"class_2\"], true] call BIS_fnc_removeVirtualMagazineCargo;"]}],"multiplayer":null,"problems":null,"aliases":[],"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"],"notes":[],"categories":["Arma 3: Functions","Arma 3: New Functions","Function Group: Inventory","Functions","Introduced with Arma 3 version 1.24"],"docblock":null,"filled_from_docblock":[]}