---
name: "fire"
type: command
status: ok
groups: ["Unit Control", "Weapons"]
arma3_since: "0.50"
locality: {"argument": "local", "effect": "global", "server_exec": false}
source: https://community.bistudio.com/wiki/fire
revid: 369149
updated: 2024-09-03T10:34:38Z
---

# fire

*Command · Unit Control, Weapons · Arma 3 v0.50 · introduced in Operation Flashpoint v1.00*

Locality: arguments **local** · effect **global**

## Description

Forces a unit to fire the given weapon.

> [!NOTE]
> Just like with [forceWeaponFire](../commands/forceWeaponFire.md) it is possible to pass remote unit as argument, but this could be unreliable. Considering this command might need to be used in combination with [selectWeapon](../commands/selectWeapon.md), which takes only [local](../topics/Multiplayer_Scripting.md#locality) arguments, it would make sense to execute the [fire](../commands/fire.md) command where the unit is [local](../topics/Multiplayer_Scripting.md#locality) as well.

## Syntax

### Syntax 1

```sqf
unit fire muzzle
```

**Parameters:**

- `unit`: [Object](../topics/Object.md) - unit that is supposed to fire
- `muzzle`: [String](../topics/String.md) - name of the muzzle to be fired

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

### Syntax 2

```sqf
unit fire [muzzle, mode, magazine]
```

**Parameters:**

- `unit`: [Object](../topics/Object.md)
- `muzzle`: [String](../topics/String.md)
- `mode`: [String](../topics/String.md)
- `magazine`: [String](../topics/String.md) - (Optional)

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

## Examples

### Example 1

```sqf
_soldier fire "M16";
```

### Example 2

```sqf
_soldier fire "SmokeShellMuzzle";
```

### Example 3

```sqf
_soldier fire ["SmokeShellMuzzle", "SmokeShellMuzzle", "SmokeShellRed"];
```

### Example 4

```sqf
player playActionNow "PutDown";
player selectWeapon "DemoChargeMuzzle";
player fire ["DemoChargeMuzzle", "DemoChargeMuzzle", "DemoCharge_Remote_Mag"];
player setWeaponReloadingTime [player, "DemoChargeMuzzle", 0];
```

## See also

[BIS_fnc_fire](../functions/BIS_fnc_fire.md) · [doFire](../commands/doFire.md) · [commandFire](../commands/commandFire.md) · [canFire](../commands/canFire.md) · [fireAtTarget](../commands/fireAtTarget.md) · [forceWeaponFire](../commands/forceWeaponFire.md) · [commandArtilleryFire](../commands/commandArtilleryFire.md) · [commandSuppressiveFire](../commands/commandSuppressiveFire.md) · [doArtilleryFire](../commands/doArtilleryFire.md) · [doSuppressiveFire](../commands/doSuppressiveFire.md) · [isManualFire](../commands/isManualFire.md) · [selectWeapon](../commands/selectWeapon.md) · ArmA: Actions

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