Arma 3 Scripting

Command in Unit Inventory

removeAllWeapons

Also available as Markdown and JSON, or read the 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