Arma 3 Scripting

Command in Unit Inventory, Vehicle Inventory

weapons

Also available as Markdown and JSON, or read the original wiki page.

Description

Returns array of names of all unit's weapons.

Syntax

weapons unit

Parameters:

Returns: Array of Strings - weapon class names

Examples

Example 1

_wArray = weapons player;

See also

magazines · weaponsTurret · assignedVehicleRole · weaponState