commandFire: 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|COMMANDFIRE]]
{{Command|= Comments
[[Category:Scripting Commands OFP 1.96|COMMANDFIRE]]
____________________________________________________________________________________________
[[Category:Scripting Commands OFP 1.46|COMMANDFIRE]]
 
[[Category:Scripting Commands ArmA|COMMANDFIRE]]
| ofp |= Game name


|1.00|= Game version


<h2 style="color:#000066"> '''''unit'' commandFire ''target'''''</h2>
|arg= local |= Arguments in MP


|eff= local |= Effects in MP
____________________________________________________________________________________________


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


'''unit''' [[Object]] or [[Array]]
| unit '''commandFire''' target |= Syntax


'''target:''' [[Object]]
|p1= unit: [[Object]] |= Parameter 1


'''Type of returned value:'''
|p2= target: [[Object]] |= Parameter 2


[[Nothing]]
| [[Nothing]] |= Return value
____________________________________________________________________________________________
 
|x1= <pre>ESoldier1 commandFire WSoldier1</pre> |= Example 1
____________________________________________________________________________________________


'''Description:'''
| [[doFire]], [[fire]] |= See also


Order unit to commence fire on given '''target''' (via radio).
}}


If target is [[objNull]], commence fire to current target (set using [[doTarget]] or [[commandTarget]]).
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->


<!-- Note Section END -->
</dl>


'''Example:'''
<h3 style="display:none">Bottom Section</h3>


soldierOne '''commandFire''' [[player]]
[[Category:Scripting Commands|COMMANDFIRE]]
[[Category:Scripting Commands OFP 1.96|COMMANDFIRE]]
[[Category:Scripting Commands OFP 1.46|COMMANDFIRE]]
[[Category:Scripting Commands ArmA|COMMANDFIRE]]

Revision as of 23:57, 1 August 2006

Hover & click on the images for description

Description

Description:
Order the given unit to fire on the given target (via the radio). 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 commandFire target
Parameters:
unit: Object
target: Object
Return Value:
Nothing

Examples

Example 1:
ESoldier1 commandFire WSoldier1

Additional Information

See also:
doFirefire

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