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

# weaponAccessories

*Command · Unit Inventory · Arma 3 v0.50*

## Description

Get array with all items linked to a given weapon.

> [!IMPORTANT]
> This command does not return loaded magazines, see [weaponsItems](../commands/weaponsItems.md)

## Syntax

```sqf
unit weaponAccessories weapon
```

**Parameters:**

- `unit`: [Object](../topics/Object.md)
- `weapon`: [String](../topics/String.md) - primary, secondary or handgun

**Returns:** [Array](../topics/Array.md) - [silencer, laserpointer/flashlight, optics, bipod]

## Examples

### Example 1

```sqf
player weaponAccessories primaryWeapon player; //["","acc_pointer_IR","optic_Aco",""]
```

## See also

[weaponAccessoriesCargo](../commands/weaponAccessoriesCargo.md) · [handgunItems](../commands/handgunItems.md) · [primaryWeaponItems](../commands/primaryWeaponItems.md) · [secondaryWeaponItems](../commands/secondaryWeaponItems.md) · [weaponsItems](../commands/weaponsItems.md) · [weaponsItemsCargo](../commands/weaponsItemsCargo.md)

## Community notes

**Killzone_Kid** — 2014-10-26

To check if currently selected muzzle has a silencer:

```sqf
hasSilencer = player weaponAccessories currentMuzzle player param [0, ""] != "";
```

---

**Jezuro** — 2015-03-16

Since revision 129742, this command also returns an attached bipod.

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