removeMagazines

From Bohemia Interactive Community
Jump to: navigation, 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:
Remove all magazines of given type from the unit.
Note: You may create invalid combinations with this function. When doing so, application behaviour is undefined.

Syntax

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

Examples

Example 1:
player removeMagazines "M16";

Additional Information

Multiplayer:
-
See also:
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