---
name: "currentWeaponMode"
type: command
status: ok
groups: ["Weapons"]
arma3_since: "0.50"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/currentWeaponMode
revid: 369197
updated: 2024-09-03T10:34:48Z
---

# currentWeaponMode

*Command · Weapons · Arma 3 v0.50 · introduced in Arma 2: Operation Arrowhead v1.50*

## Description

Returns current weapon mode of unit's weapon.

> [!WARNING]
> This command will return 0 [Number](../topics/Number.md) if given object is a vehicle instead of a person.
>
> You can alternatively use 
>
> ```sqf
> _muzzle = weaponState player select 2;
> ```

## Syntax

```sqf
currentWeaponMode gunner
```

**Parameters:**

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

**Returns:** [String](../topics/String.md) - current mode's classname

## Examples

### Example 1

```sqf
_weaponMode = currentWeaponMode player;
```

### Example 2

```sqf
_weaponMode = currentWeaponMode gunner vehicle player;
```

## See also

ArmA: Actions · [currentWeapon](../commands/currentWeapon.md)

## Community notes

**Sarogahtyp** — 2022-07-04

To set the firemode of the current weapon of a player, simply use the workaround described by Killzone_Kid in the first note of the [forceWeaponFire](../commands/forceWeaponFire.md) wiki entry:

```sqf
_weapon = currentWeapon player;
_ammo = player ammo _weapon;
player setAmmo [_weapon, 0];
player forceWeaponFire [_weapon, "FullAuto"];
player setAmmo [_weapon, _ammo];
```

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