Arma 3 Scripting

Command in Unit Control

doFire

Also available as Markdown and JSON, or read the original wiki page.

Description

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

The target is set with doTarget or commandTarget.

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

Syntax

unit doFire target

Parameters:

Returns: Nothing

Examples

Example 1

_ESoldier1 doFire _WSoldier1;

See also

fire · commandFire · canFire · fireAtTarget · forceWeaponFire · commandArtilleryFire · commandSuppressiveFire · doArtilleryFire · doSuppressiveFire · isManualFire

Community notes

Hardrock

Notes from before the conversion:

It is often helpful to use doTarget first.

Hurricane

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

Sakura_chan

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.