removeMagazines

From Bohemia Interactive Community

Jump to: navigation, search


Editors, please check Policy: Scripting Command Page Syntax.
Introduced in Operation Flashpoint version 1.00

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:
Unit removeMagazines "magazineName"
Parameters:
magazineName: String
Return Value:
Nothing

Examples

Example 1:
player removeMagazines "M16"

Additional Information

Multiplayer:
Behaviour unknown.
See also:
removeMagazine, removeWeapon

Notes

Notes

+ Add Note

Only post proven facts here. 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

Personal tools
Buy ArmA now!