---
name: "weaponDisassemblyEnabled"
type: command
status: ok
groups: ["Weapons"]
arma3_since: "2.14"
locality: {"argument": "global", "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/weaponDisassemblyEnabled
revid: 347215
updated: 2023-09-05T16:49:02Z
---

# weaponDisassemblyEnabled

*Command · Weapons · Arma 3 v2.14*

Locality: arguments **global**

## Description

Returns if weapon disassembly is enabled. As disassembly can be enabled/disabled on both player and weapon, it might be necessary to check both.

> [!IMPORTANT]
> Beware that when the weapon disassembly is disabled on the player, it is tracking the unit itself.
> If the player leaves the server and another player joins into the same playable unit, they will not have the option to disassemble either.

## Syntax

```sqf
weaponDisassemblyEnabled entity
```

**Parameters:**

- `entity`: [Object](../topics/Object.md) - [player](../commands/player.md) or weapon

**Returns:** [Boolean](../topics/Boolean.md) - [true](../commands/true.md) if enabled

## Examples

### Example 1

```sqf
private _enabled = weaponDisassemblyEnabled player && weaponDisassemblyEnabled _weapon;
```

## See also

[enableWeaponDisassembly](../commands/enableWeaponDisassembly.md) · [weapons](../commands/weapons.md) · [action](../commands/action.md) · [inGameUISetEventHandler](../commands/inGameUISetEventHandler.md)

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