---
name: "currentMuzzle"
type: command
status: ok
groups: ["Weapons"]
arma3_since: "0.50"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/currentMuzzle
revid: 321269
updated: 2022-05-13T19:08:05Z
---

# currentMuzzle

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

## Description

Returns a unit's current weapon muzzle. Does not work on vehicles.

## Syntax

```sqf
currentMuzzle unit
```

**Parameters:**

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

**Returns:** [String](../topics/String.md) - current muzzle

> [!IMPORTANT]
> In earlier games/versions, this command could return a [Number](../topics/Number.md) (`0`) if *unit* was in a vehicle.
> Use the following to circumvent the issue:
>
> ```sqf
> _muzzle = weaponState unit select 1;
> ```

## Examples

### Example 1

```sqf
_muzzle = currentMuzzle player;
```

### Example 2

```sqf
_muzzle = currentMuzzle (gunner (vehicle player));
```

## See also

[currentWeapon](../commands/currentWeapon.md) · [currentMagazine](../commands/currentMagazine.md) · [currentThrowable](../commands/currentThrowable.md)

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