---
name: "commandFire"
type: command
status: ok
groups: ["Unit Control"]
arma3_since: "0.50"
locality: {"argument": "local", "effect": "local", "server_exec": false}
source: https://community.bistudio.com/wiki/commandFire
revid: 364826
updated: 2024-06-16T09:28:16Z
---

# commandFire

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

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

## Description

Order the given unit to fire on the given target (via the radio).
If the target is [objNull](../commands/objNull.md), the unit is ordered to fire on its current target (set with [doTarget](../commands/doTarget.md) or [commandTarget](../commands/commandTarget.md)).

## Syntax

```sqf
unit commandFire target
```

**Parameters:**

- `unit`: [Object](../topics/Object.md) of type [Unit](../topics/Object.md) or [Array](../topics/Array.md) of [Unit](../topics/Object.md)s
- `target`: [Object](../topics/Object.md)

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

## Examples

### Example 1

```sqf
_ESoldier1 commandFire _WSoldier1;
```

## See also

[fire](../commands/fire.md) · [doFire](../commands/doFire.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)

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