---
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: 369614
updated: 2024-09-26T21:03:08Z
---

# 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 [String](../topics/String.md)s - 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)

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