removeMagazines

From Bohemia Interactive Community
Revision as of 20:48, 3 June 2020 by Lou Montana (talk | contribs) (Text replacement - "[[Category:Scripting Commands ArmA|" to "[[Category:Scripting Commands Armed Assault|")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Introduced with Operation Flashpoint version 1.001.00Arguments of this scripting command have to be local to the client the command is executed on
Hover & click on the images for descriptions

Description

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

Syntax:
unitName removeMagazines magazineName
Parameters:
unitName: Object
magazineName: String
Return Value:
Nothing

Examples

Example 1:
player removeMagazines "30Rnd_556x45_Stanag";

Additional Information

See also:
addMagazine, magazinesremoveMagazineremoveWeaponremoveMagazinesTurretremoveMagazineTurretsetVehicleAmmo

Notes

i
Only post proven facts here. Report bugs on the Feedback Tracker and discuss on the Arma Discord or on the Forums.

Notes

pyro05x
Though BIS did not provide a command to remove all magazines of every type, it can still be accomplished using forEach magazines. example:
{player removeMagazine _x} forEach magazines player


Bottom Section