Arma 3 Scripting

removeMagazinesTurret

  • Local argument
  • Global effect
  • Arma 3 v0.50
  • First in Arma 2: Operation Arrowhead v1.52

Command · Markdown · JSON · original wiki page

Description

Removes all magazines of the given type from given vehicle. Use turret path [-1] for driver's turret.

Syntax

vehicle removeMagazinesTurret [magazineName, turretPath]

Parameters:

Returns: Nothing

Examples

Example 1

vehicle player removeMagazinesTurret ["60rnd_CMFlareMagazine", [-1]];

Example 2

_tank removeMagazinesTurret ["20Rnd_120mmSABOT_M1A2", [0]];

See also

removeAllMagazinesTurret · addMagazineTurret · removeAllMagazines · magazinesTurret · removeMagazineTurret · weaponsTurret · addWeaponTurret · removeWeaponTurret · turretLocal

Community notes

Kylania

Here's how you would remove all machine gun ammo from an M1A2 TUSK:
remove the gunner's M240 ammo.

this removeMagazinesTurret ["1200Rnd_762x51_M240", [0]];

remove the commander's M2 ammo.

this removeMagazinesTurret ["100Rnd_127x99_M2", [0, 0]];

remove the loader's M240 ammo.

this removeMagazinesTurret ["100Rnd_762x51_M240", [0, 1]];