---
name: "doFire"
type: command
status: ok
groups: ["Unit Control"]
arma3_since: "0.50"
locality: {"argument": "local", "effect": "global", "server_exec": false}
source: https://community.bistudio.com/wiki/doFire
revid: 378648
updated: 2026-05-17T15:10:41Z
---

# doFire

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

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

## Description

Order the given unit(s) to fire on the given target (without radio messages).

The target is set with [doTarget](../commands/doTarget.md) or [commandTarget](../commands/commandTarget.md).

The target can be a unit or a vehicle, but not an object.

## Syntax

```sqf
unit doFire target
```

**Parameters:**

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

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

## Examples

### Example 1

```sqf
_ESoldier1 doFire _WSoldier1;
```

## See also

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

## Community notes

**Hardrock** — 2006-08-03

*Notes from before the conversion:*

It is often helpful to use [doTarget](../commands/doTarget.md) first.

---

**Hurricane** — 2007-03-25

A unit will not execute this command when his behaviour is set to "careless".

---

**Sakura_chan** — 2012-06-07

`unitName doFire objNull` does not work like it does in `commandFire`.
Target var has to be real (Arma 2:OA) might be different in other versions.

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