---
name: "isSwitchingWeapon"
type: command
status: ok
groups: ["Unit Inventory"]
arma3_since: "2.20"
locality: {"argument": "global", "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/isSwitchingWeapon
revid: 376101
updated: 2025-08-20T14:10:18Z
---

# isSwitchingWeapon

*Command · Unit Inventory · Arma 3 v2.20*

Locality: arguments **global**

## Description

Returns wether or not the unit is in the process of switching weapon.

## Syntax

```sqf
isSwitchingWeapon unit
```

**Parameters:**

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

**Returns:** [Boolean](../topics/Boolean.md) - [true](../commands/true.md) if the unit is switching weapon.

## Examples

### Example 1

```sqf
isSwitchingWeapon player;
```

## See also

[primaryWeaponMagazine](../commands/primaryWeaponMagazine.md) · [primaryWeaponItems](../commands/primaryWeaponItems.md) · [addPrimaryWeaponItem](../commands/addPrimaryWeaponItem.md) · [removePrimaryWeaponItem](../commands/removePrimaryWeaponItem.md) · [removeAllPrimaryWeaponItems](../commands/removeAllPrimaryWeaponItems.md) · [secondaryWeapon](../commands/secondaryWeapon.md) · [handgunWeapon](../commands/handgunWeapon.md) · [currentWeapon](../commands/currentWeapon.md) · [weapons](../commands/weapons.md) · [primaryWeapon](../commands/primaryWeapon.md) · [setUnitLoadout](../commands/setUnitLoadout.md)

## Community notes

**OverlordZorn** — 2025-08-20

as of 2.20, this does not return true when the unit is prone

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