doFire: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
[[Category:Scripting Commands|DOFIRE]]
{{Command|= Comments
[[Category:Scripting Commands OFP 1.96|DOFIRE]]
____________________________________________________________________________________________
[[Category:Scripting Commands OFP 1.46|DOFIRE]]
[[Category:Scripting Commands ArmA|DOFIRE]]


| ofp |= Game name


<h2 style="color:#000066">'''''unit'' doFire ''target'''''</h2>
|1.00|= Game version


|arg= local |= Arguments in MP


'''Operand types:'''
|eff= global |= Effects in MP
____________________________________________________________________________________________


'''unit:''' [[Object]] or [[Array]]
| Order the given unit to fire on the given target (without radio messages). If the target is [[objNull]], the unit is ordered to fire on its current target (set with [[doTarget]] or [[commandTarget]]). |= Description
____________________________________________________________________________________________


'''target:''' [[Object]]
| unit '''doFire''' target |= Syntax


'''Type of returned value:'''
|p1= unit: [[Object]] |= Parameter 1


[[Nothing]]
|p2= target: [[Object]] |= Parameter 2


'''Description:'''
| [[Nothing]] |= Return value
____________________________________________________________________________________________
 
|x1= <pre>ESoldier1 doFire WSoldier1</pre> |= Example 1
____________________________________________________________________________________________


Orders unit to commence fire on given '''target''' (silently).
| [[commandFire]], [[fire]] |= See also


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


<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->


'''Example:'''
<!-- Note Section END -->
</dl>


soldierOne '''doFire''' [[objNull]]
<h3 style="display:none">Bottom Section</h3>
Old Notes (temporary):


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


'''Comments:'''
[[Category:Scripting Commands|DOFIRE]]
 
[[Category:Scripting Commands OFP 1.96|DOFIRE]]
It is often helpful to use [[doTarget]] first.
[[Category:Scripting Commands OFP 1.46|DOFIRE]]
[[Category:Scripting Commands ArmA|DOFIRE]]

Revision as of 23:48, 1 August 2006

Hover & click on the images for description

Description

Description:
Order the given unit to fire on the given target (without radio messages). If the target is objNull, the unit is ordered to fire on its current target (set with doTarget or commandTarget).
Groups:
Uncategorised

Syntax

Syntax:
unit doFire target
Parameters:
unit: Object
target: Object
Return Value:
Nothing

Examples

Example 1:
ESoldier1 doFire WSoldier1

Additional Information

See also:
commandFirefire

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note

Notes

Bottom Section

Old Notes (temporary):

It is often helpful to use doTarget first.