doFire

From Bohemia Interactive Community
Revision as of 12:57, 4 July 2006 by Planck (talk | contribs)
Jump to navigation Jump to search


unit doFire target


Operand types:

unit: Object or Array

target: Object

Type of returned value:

Nothing

Description:

Orders unit to commence fire on given target (silently).

If target is objNull, the unit is ordered to commence firing on its current target (set using doTarget or commandTarget).


Example:

soldierOne doFire objNull


Comments:

It is often helpful to use doTarget first.