{"name":"addMagazines","title":"addMagazines","type":"command","url":"https://community.bistudio.com/wiki/addMagazines","revid":343753,"updated":"2023-07-16T17:29:01Z","groups":["Unit Inventory"],"status":"ok","games":{"arma3":"0.50"},"since":"arma3 0.50","arma3_since":"0.50","locality":{"argument":"global","effect":"global"},"description":"Adds multiple magazines to the unit. For cargo containers use addMagazineCargoGlobal command.\n\n> [!NOTE]\n> This command is meant to be used on human units. If used on vehicles, this command is Local argument Global effect.","syntaxes":[{"syntax":"unit addMagazines [magazineName, count]","params":[{"name":"unit","type":"Object","description":"a soldier","type_expr":"Object"},{"name":"magazineName","type":"String","type_expr":"String"},{"name":"count","type":"Number","description":"number of magazines","type_expr":"Number"}],"returns":{"type":"Nothing","type_expr":"Nothing"},"form":"binary","left":{"text":"unit"},"right":{"text":"[magazineName, count]"}}],"examples":[{"code":["player addMagazines [\"30Rnd_65x39_caseless_mag\", 3];"]}],"see_also":["addMagazineGlobal","addMagazine","addMagazineCargo","addMagazineCargoGlobal","addMagazinePool","addMagazineTurret","addMagazineAmmoCargo"]}