Arma 3 Scripting

removeAllWeapons

  • Local argument
  • Global effect
  • Arma 3 v0.50
  • First in Operation Flashpoint v1.00

Command · Markdown · JSON · original wiki page

Description

Removes all weapons and magazines from the given unit. Does not remove items like map, compass, radio (see removeWeapon for this).

Note

Does not quite work with vehicles. If you need to remove all weapons from a vehicle, remove each weapon individually (see removeWeapon).

Syntax

removeAllWeapons unit

Parameters:

Returns: Nothing

Examples

Example 1

removeAllWeapons player;

See also

removeWeapon · setVehicleAmmo · clearWeaponCargo · clearMagazineCargo · removeAllItems · removeBackpack