{"name":"addMagazineCargo","operator":null,"title":"addMagazineCargo","type":"command","url":"https://community.bistudio.com/wiki/addMagazineCargo","revid":376381,"updated":"2025-10-09T02:13:28Z","groups":["Containers"],"status":"ok","replaced_by":[],"games":[{"game":"ofp","name":"Operation Flashpoint","version":"1.00"},{"game":"ofpe","name":"Operation Flashpoint: Elite","version":"1.00"},{"game":"arma1","name":"Armed Assault","version":"1.00"},{"game":"arma2","name":"Arma 2","version":"1.00"},{"game":"arma2oa","name":"Arma 2: Operation Arrowhead","version":"1.50"},{"game":"tkoh","name":"Take On Helicopters","version":"1.00"},{"game":"arma3","name":"Arma 3","version":"0.50"}],"since":{"game":"ofp","name":"Operation Flashpoint","version":"1.00"},"arma3_since":"0.50","branch":null,"locality":{"argument":"global","effect":"local","server_exec":false},"exec":null,"description":"Add magazines to the cargo space of vehicles, which can be taken out by infantry units. Once the magazine cargo space is filled up, any further addMagazineCargo commands are ignored.\n\n> [!NOTE]\n> **Arma 3:** In Arma 3, arguments for this command must be local (Local Argument). For the global variant see addMagazineCargoGlobal.","syntaxes":[{"syntax":"vehicleName addMagazineCargo [magazineName, count]","since":null,"effect":null,"exec":null,"params":[{"name":"vehicleName","type":"Object","optional":false,"default":null,"description":"vehicle to add the magazines to","types":["Object"],"since":null,"text":"vehicleName: Object - vehicle to add the magazines to"},{"name":"magazineName","type":"String","optional":false,"default":null,"description":"magazine name. See Category:Weapons for reference about possible values.","types":["String"],"since":null,"text":"magazineName: String - magazine name. See Category:Weapons for reference about possible values."},{"name":"count","type":"Number","optional":false,"default":null,"description":"number of magazines to add. Arma 3 v2.14 negative count will remove magazines.","types":["Number"],"since":null,"text":"count: Number - number of magazines to add. Arma 3 v2.14 negative count will remove magazines."}],"returns":{"type":"Nothing","types":["Nothing"],"description":null,"text":"Nothing"},"form":"binary","operator":null,"left":{"text":"vehicleName","types":["Object"]},"right":{"text":"[magazineName, count]","types":["Array"]}}],"examples":[{"text":"```sqf\n_truck addMagazineCargo [\"M16\", 5];\n```","code":["_truck addMagazineCargo [\"M16\", 5];"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["addMagazineCargoGlobal","addMagazine","addMagazineGlobal","addMagazines","addMagazinePool","addMagazineTurret","clearMagazineCargo","addWeaponCargo","clearWeaponCargo","getMagazineCargo","addItemCargo","addItemCargoGlobal","addMagazineAmmoCargo"],"notes":[],"categories":["ArmA: Armed Assault: Scripting Commands","Arma 2: Operation Arrowhead: Scripting Commands","Arma 2: Scripting Commands","Arma 3: Scripting Commands","Command Group: Containers","Introduced with Operation Flashpoint version 1.00","Operation Flashpoint: Elite: Scripting Commands","Operation Flashpoint: New Scripting Commands","Operation Flashpoint: Scripting Commands","Scripting Commands","Scripting Commands: Local Effect","Take On Helicopters: Scripting Commands"]}