---
name: "BIS_fnc_weaponComponents"
type: function
status: ok
groups: ["Weapons"]
arma3_since: "1.00"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/BIS_fnc_weaponComponents
revid: 348382
updated: 2023-11-08T12:59:58Z
---

# BIS_fnc_weaponComponents

*Function · Weapons · Arma 3 v1.00*

## Description

Returns array with classname of the parent weapon (without attachments), followed by classnames of all its attachments.

> [!IMPORTANT]
> The returned classnames are all converted to lower cases.

## Syntax

```sqf
[classname] call BIS_fnc_weaponComponents
```

**Parameters:**

- `classname`: [String](../topics/String.md) - classname of the parent weapon

**Returns:** [Array](../topics/Array.md)

## Examples

### Example 1

```sqf
"arifle_mx_aco_pointer_f" call BIS_fnc_weaponComponents; // ["arifle_mx_f","optic_aco","acc_pointer_ir"]
```

### Example 2

```sqf
"arifle_mx_gl_black_hamr_pointer_f" call BIS_fnc_weaponComponents; // ["arifle_mx_gl_black_f","optic_hamr","acc_pointer_ir"]
```

### Example 3

```sqf
"arifle_mx_black_f" call BIS_fnc_weaponComponents; // ["arifle_mx_f"]
```

<sub>Source: [BI Community Wiki — BIS fnc weaponComponents](https://community.bistudio.com/wiki/BIS_fnc_weaponComponents) (revision 348382).</sub>
