removeMagazines

From Bohemia Interactive Community
Revision as of 15:45, 7 April 2019 by Erentar (talk | contribs) (template:command argument fix)
Jump to navigation Jump to search
Introduced with Operation Flashpoint version 1.001.00
Arguments 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. Use the Talk page or the Forums for discussions.

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