{"name":"addWeaponCargoGlobal","operator":null,"title":"addWeaponCargoGlobal","type":"command","url":"https://community.bistudio.com/wiki/addWeaponCargoGlobal","revid":376384,"updated":"2025-10-09T02:14:17Z","groups":["Containers"],"status":"ok","replaced_by":[],"games":[{"game":"arma2oa","name":"Arma 2: Operation Arrowhead","version":"1.55"},{"game":"tkoh","name":"Take On Helicopters","version":"1.00"},{"game":"arma3","name":"Arma 3","version":"0.50"}],"since":{"game":"arma2oa","name":"Arma 2: Operation Arrowhead","version":"1.55"},"arma3_since":"0.50","branch":null,"locality":{"argument":"global","effect":"global","server_exec":false},"exec":null,"description":"Add weapons to the cargo space of vehicles, which can be taken out by infantry units.","syntaxes":[{"syntax":"vehicleName addWeaponCargoGlobal [weaponName, count]","since":null,"effect":null,"exec":null,"params":[{"name":"vehicleName","type":"Object","optional":false,"default":null,"description":"vehicle to which add the weapons","types":["Object"],"since":null,"text":"vehicleName: Object - vehicle to which add the weapons"},{"name":"weaponName","type":"String","optional":false,"default":null,"description":"weapon name. See the topic Category:Weapons for reference about possible values","types":["String"],"since":null,"text":"weaponName: String - weapon name. See the topic Category:Weapons for reference about possible values"},{"name":"count","type":"Number","optional":false,"default":null,"description":"number of weapons to add. Arma 3 v2.14 negative count will remove weapons.","types":["Number"],"since":null,"text":"count: Number - number of weapons to add. Arma 3 v2.14 negative count will remove weapons."}],"returns":{"type":"Nothing","types":["Nothing"],"description":null,"text":"Nothing"},"form":"binary","operator":null,"left":{"text":"vehicleName","types":["Object"]},"right":{"text":"[weaponName, count]","types":["Array"]}}],"examples":[{"text":"```sqf\n_truck addWeaponCargoGlobal [\"M16\", 5];\n```","code":["_truck addWeaponCargoGlobal [\"M16\", 5];"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["addMagazineCargo","clearMagazineCargo","clearWeaponCargo","addMagazineCargoGlobal","addBackpackCargo","addBackpackCargoGlobal","addItemCargo","addItemCargoGlobal","addWeaponWithAttachmentsCargoGlobal"],"notes":[],"categories":["Arma 2: Operation Arrowhead: New Scripting Commands","Arma 2: Operation Arrowhead: Scripting Commands","Arma 3: Scripting Commands","Command Group: Containers","Introduced with Arma 2: Operation Arrowhead version 1.55","Scripting Commands","Scripting Commands: Global Effect","Take On Helicopters: Scripting Commands"]}