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.00
  Arguments of this scripting command have to be local to the client the command is executed on

Click on the images for descriptions

Introduced in

Game:
Operation Flashpoint
Version:
1.00

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

Multiplayer:
-
See also:
addMagazine, magazinesremoveMagazineremoveWeaponremoveMagazinesTurretremoveMagazineTurretsetVehicleAmmo

Notes

Only post proven facts here. Report bugs on the feedback tracker. Use the talk page or the forums for discussions.
Add New Note | How To

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