doFire: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
 
No edit summary
Line 1: Line 1:
back to [[Scripting_Reference#D|COMREF]]
<h2 style="color:#000066">'''doFire ''target'''''</h2>
<h2 style="color:#000066">'''doFire ''target'''''</h2>


'''Operand types:'''
'''Operand types:'''


target: [[Object]]
'''target:''' [[Object]]


'''Type of returned value:'''
'''Type of returned value:'''


Nothing
[[Nothing]]


'''Description:'''
'''Description:'''


Order unit to commence fire on given target (silent).
Order unit to commence fire on given '''target''' (silent).
 
If target is [[objNull]], commence fire to current target (set using [[doTarget]] or [[commandTarget]]).
If target is [[objNull]], commence fire to current target (set using [[doTarget]] or [[commandTarget]]).


'''Example:'''
'''Example:'''


soldierOne '''doFire''' objNull
soldierOne '''doFire''' [[objNull]]
 


'''Comments'''
'''Comments'''
It is often helpful to use [[doTarget]] first.
It is often helpful to use [[doTarget]] first.

Revision as of 12:17, 16 April 2006

back to COMREF

doFire target


Operand types:

target: Object

Type of returned value:

Nothing

Description:

Order unit to commence fire on given target (silent).

If target is objNull, commence fire to current target (set using doTarget or commandTarget).


Example:

soldierOne doFire objNull


Comments

It is often helpful to use doTarget first.