Arma 3 Scripting

Command in Unit Inventory

removeMagazines

Also available as Markdown and JSON, or read the original wiki page.

Description

Removes all magazines of given type from the unit. If magazine class does not exist, nothing happens, not even .rpt message, unlike with addMagazine command.

Syntax

unitName removeMagazines magazineName

Parameters:

Returns: Nothing

Examples

Example 1

player removeMagazines "30Rnd_556x45_Stanag";

See also

removeAllMagazines · addMagazine · magazines · removeMagazine · removeWeapon · removeMagazinesTurret · removeMagazineTurret · setVehicleAmmo

Community notes