{"name":"addMagazineGlobal","operator":null,"title":"addMagazineGlobal","type":"command","url":"https://community.bistudio.com/wiki/addMagazineGlobal","revid":318776,"updated":"2022-05-13T09:21:28Z","groups":["Unit Inventory"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"0.76"}],"since":{"game":"arma3","name":"Arma 3","version":"0.76"},"arma3_since":"0.76","branch":null,"locality":{"argument":"global","effect":"global","server_exec":false},"exec":null,"description":"Adds magazine to a unit regardless of locality. This command can also be used to add magazine to a vehicle, like a static gun, for example.","syntaxes":[{"syntax":"unit addMagazineGlobal magazineName","since":null,"effect":null,"exec":null,"params":[{"name":"unit","type":"Object","optional":false,"default":null,"description":null,"types":["Object"],"since":null,"text":"unit: Object"},{"name":"magazineName","type":"String","optional":false,"default":null,"description":null,"types":["String"],"since":null,"text":"magazineName: String"}],"returns":{"type":"Nothing","types":["Nothing"],"description":null,"text":"Nothing"},"form":"binary","operator":null,"left":{"text":"unit","types":["Object"]},"right":{"text":"magazineName","types":["String"]}}],"examples":[{"text":"```sqf\nplayer addMagazineGlobal \"30Rnd_65x39_caseless_mag\";\n```","code":["player addMagazineGlobal \"30Rnd_65x39_caseless_mag\";"]}],"multiplayer":"Before Arma 3 v2.00 this command was broken in MP and duplicated items per the number of clients.","problems":null,"aliases":[],"see_also":["addMagazine","addMagazines","addMagazineCargo","addMagazineCargoGlobal","addMagazinePool","addMagazineTurret","addMagazineAmmoCargo"],"notes":[],"categories":["Arma 3: New Scripting Commands","Arma 3: Scripting Commands","Command Group: Unit Inventory","Introduced with Arma 3 version 0.76","Scripting Commands","Scripting Commands: Global Effect"]}