{"name":"removeMagazinesTurret","operator":null,"title":"removeMagazinesTurret","type":"command","url":"https://community.bistudio.com/wiki/removeMagazinesTurret","revid":377499,"updated":"2026-01-02T06:49:26Z","groups":["Turrets"],"status":"ok","replaced_by":[],"games":[{"game":"arma2oa","name":"Arma 2: Operation Arrowhead","version":"1.52"},{"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.52"},"arma3_since":"0.50","branch":null,"locality":{"argument":"local","effect":"global","server_exec":false},"exec":null,"description":"Removes all magazines of the given type from given vehicle. Use turret path [-1] for driver's turret.","syntaxes":[{"syntax":"vehicle removeMagazinesTurret [magazineName, turretPath]","since":null,"effect":null,"exec":null,"params":[{"name":"vehicle","type":"Object","optional":false,"default":null,"description":null,"types":["Object"],"since":null,"text":"vehicle: Object"},{"name":"magazineName","type":"String","optional":false,"default":null,"description":null,"types":["String"],"since":null,"text":"magazineName: String"},{"name":"turretPath","type":"Turret Path","optional":false,"default":null,"description":null,"types":["Turret Path"],"since":null,"text":"turretPath: Turret Path"}],"returns":{"type":"Nothing","types":["Nothing"],"description":null,"text":"Nothing"},"form":"binary","operator":null,"left":{"text":"vehicle","types":["Object"]},"right":{"text":"[magazineName, turretPath]","types":["Array"]}}],"examples":[{"text":"```sqf\nvehicle player removeMagazinesTurret [\"60rnd_CMFlareMagazine\", [-1]];\n```","code":["vehicle player removeMagazinesTurret [\"60rnd_CMFlareMagazine\", [-1]];"]},{"text":"```sqf\n_tank removeMagazinesTurret [\"20Rnd_120mmSABOT_M1A2\", [0]];\n```","code":["_tank removeMagazinesTurret [\"20Rnd_120mmSABOT_M1A2\", [0]];"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["removeAllMagazinesTurret","addMagazineTurret","removeAllMagazines","magazinesTurret","removeMagazineTurret","weaponsTurret","addWeaponTurret","removeWeaponTurret","turretLocal"],"notes":[{"user":"Kylania","date":"2011-07-30T18:42:00Z","text":"Here's how you would remove all machine gun ammo from an M1A2 TUSK:\n\nremove the gunner's M240 ammo.\n\n```sqf\nthis removeMagazinesTurret [\"1200Rnd_762x51_M240\", [0]];\n```\n\nremove the commander's M2 ammo.\n\n```sqf\nthis removeMagazinesTurret [\"100Rnd_127x99_M2\", [0, 0]];\n```\n\nremove the loader's M240 ammo.\n\n```sqf\nthis removeMagazinesTurret [\"100Rnd_762x51_M240\", [0, 1]];\n```"}],"categories":["Arma 2: Operation Arrowhead: New Scripting Commands","Arma 2: Operation Arrowhead: Scripting Commands","Arma 3: Scripting Commands","Command Group: Turrets","Introduced with Arma 2: Operation Arrowhead version 1.52","Scripting Commands","Scripting Commands: Global Effect","Take On Helicopters: Scripting Commands"]}