{"name":"BIS_fnc_addVirtualMagazineCargo","operator":null,"title":"BIS fnc addVirtualMagazineCargo","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_addVirtualMagazineCargo","revid":349405,"updated":"2023-11-08T16:27:26Z","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":"Add virtual magazines to an object (e.g., ammo box). Virtual items can be selected in the Arsenal.","syntaxes":[{"syntax":"[object,magClasses,addItemsGlobal,arsenal] call BIS_fnc_addVirtualMagazineCargo","since":null,"effect":null,"exec":null,"params":[{"name":"object","type":"Object","optional":false,"default":null,"description":"object to which items will be added","types":["Object"],"since":null,"text":"object: Object - object to which items will be added"},{"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":"addItemsGlobal","type":"Boolean","optional":true,"default":"false","description":"true to add items globally","types":["Boolean"],"since":null,"text":"addItemsGlobal: Boolean - (Optional, default false) true to add items globally"},{"name":"arsenal","type":"Boolean","optional":true,"default":"true","description":"true to add Arsenal action","types":["Boolean"],"since":null,"text":"arsenal: Boolean - (Optional, default true) true to add Arsenal action"}],"returns":{"type":"Array of Strings","types":["Array","String"],"description":"all virtual magazines","text":"Array of Strings - all virtual magazines"}}],"examples":[{"text":"```sqf\n[BIS_ammoBox, [\"class_1\",\"class_2\"], false, true] call BIS_fnc_addVirtualMagazineCargo;\n```","code":["[BIS_ammoBox, [\"class_1\",\"class_2\"], false, true] call BIS_fnc_addVirtualMagazineCargo;"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["Arsenal","BIS_fnc_addVirtualBackpackCargo","BIS_fnc_addVirtualItemCargo","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_removeVirtualMagazineCargo","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":[]}