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


Introduced in

Version:1.00

Description

Description:

Removes all weapons and magazines for the unit (including any equipment that is classified as a "weapon" - for example,  binoculars and NVGs).

Note: Has no effect on vehicles.

Syntax

Syntax:removeAllWeapons unit
Parameters:
  • unit: Object - Affected unit.
Return Value:Nothing

Examples

Examples:removeAllWeapons player

Additional Information

See also: removeWeapon
Multiplayer:
Problems:

Notes





Spec
You can use clearWeaponCargo and clearMagazineCargo for vehicles.