Page tree
Skip to end of metadata
Go to start of metadata


Introduced in

Version:1.00

Description

Description:

Remove all magazines of given type from the unit or vehicle.

Note: You may create invalid combinations with this command. When doing so, application behavior is undefined.

Syntax

Syntax:unit removeMagazines magazineName
Parameters:
  • unit: Object - Unit or vehicle without turrets.
  • magazineName: String - Magazines class name (see Magazine Configuration in the VBS3 Developer Reference).
Return Value:Nothing

Alternative Syntax

Syntax:vehicle removeMagazines [magazineName,turret] (V1.60+)
Parameters:
  • vehicle : Object - Vehicle with turrets.
  • magazineName: String - Magazines class name (see Magazine Configuration in the VBS3 Developer Reference).
  • turret: Array - Vehicle turret to remove magazines from.
Return Value:Nothing

Examples

Examples:player removeMagazines "M16"tank1 removeMagazines ["vbs2_carhorn",[]]"

Additional Information

See also: removeMagazine, removeWeapon
Multiplayer:
Problems:

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