---
name: "weapons"
type: command
status: ok
groups: ["Unit Inventory", "Vehicle Inventory"]
arma3_since: "0.50"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/weapons
revid: 379485
updated: 2026-10-31T00:12:47Z
---

# weapons

*Command · Unit Inventory, Vehicle Inventory · Arma 3 v0.50 · introduced in Operation Flashpoint v1.75*

## Description

Returns array of names of all unit's weapons.

## Syntax

```sqf
weapons unit
```

**Parameters:**

- `unit`: [Object](../topics/Object.md)

**Returns:** [Array](../topics/Array.md) of [Strings](../topics/String.md) - weapon class names

## Examples

### Example 1

```sqf
_wArray = weapons player;
```

## See also

[magazines](../commands/magazines.md) · [weaponsTurret](../commands/weaponsTurret.md) · [assignedVehicleRole](../commands/assignedVehicleRole.md) · [weaponState](../commands/weaponState.md)

## Community notes

**Bdfy** — 2007-01-20

Armed Assault v1.02 This command returns only weapons defined for the primary turret of the vehicle.
for ex. only ["D81", "PKT"] for t72, not ["D81", "PKT","DSHKM"]

---

**Donnervogel** — 2007-03-03

*weapons* never returns the weapon "Throw" which all soldier units have have to throw hand grenades. You'd have to use [hasWeapon](../commands/hasWeapon.md) to verify it. Also hand grenades are not listed since they are magazines. Use [magazines](../commands/magazines.md) for that.

---

**.kju** — 2011-03-11

Use [weaponsTurret](../commands/weaponsTurret.md) to determine the weapons of a non gunner/turret position.

---

**Dr_Eyeball** — 2011-11-25

This command does not include non-turret weapons, such as smoke, flare or chaff launchers which are usually declared in the root of the vehicle's class, rather than in the Turrets hierarchy. (Unsure whether it excludes it because it is not in the turret or because these are not considered true weapons via some property.)

<sub>Source: [BI Community Wiki — weapons](https://community.bistudio.com/wiki/weapons) (revision 379485).</sub>
