commandFire: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "[[Category:Scripting Commands ArmA|" to "[[Category:Scripting Commands Armed Assault|")
m (Text replacement - "<code>([a-zA-Z0-9_]+) +\[\[([a-zA-Z0-9_]+)\]\] +([a-zA-Z0-9_]+);?<\/code>" to "<sqf>$1 $2 $3;</sqf>")
 
(39 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Command|Comments=
{{RV|type=command
____________________________________________________________________________________________


| ofp |Game name=
|game1= ofp
|version1= 1.00


|1.00|Game version=
|game2= ofpe
|version2= 1.00


|arg= local |Multiplayer Arguments=
|game3= arma1
|version3= 1.00


|eff= local |Multiplayer Effects=
|game4= arma2
____________________________________________________________________________________________
|version4= 1.00


| Order the given unit to fire on the given target (via the radio).
|game5= arma2oa
If the target is [[objNull]], the unit is ordered to fire on its current target (set with [[doTarget]] or [[commandTarget]]). |DESCRIPTION=
|version5= 1.50
____________________________________________________________________________________________


| unitName '''commandFire''' target |SYNTAX=
|game6= tkoh
|version6= 1.00


|p1= unitName: [[Object]] or [[Array]] |PARAMETER1=
|game7= arma3
|version7= 0.50


|p2= target: [[Object]] |PARAMETER2=
|gr1= Unit Control


| [[Nothing]] |RETURNVALUE=
|arg= local
____________________________________________________________________________________________
 
|x1= <pre>_ESoldier1 commandFire _WSoldier1</pre> |EXAMPLE1=
____________________________________________________________________________________________


| [[fire]], [[doFire]], [[canFire]], [[fireAtTarget]], [[forceWeaponFire]], [[commandArtilleryFire]], [[commandSuppressiveFire]], [[doArtilleryFire]], [[doSuppressiveFire]], [[isManualFire]] |SEEALSO=
|eff= local


}}
|descr= 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]]).
 
|s1= unitName [[commandFire]] target
 
|p1= unitName: [[Object]] or [[Array]]


<h3 style="display:none">Notes</h3>
|p2= target: [[Object]]
<dl class="command_description">
<!-- Note Section BEGIN -->


<!-- Note Section END -->
|r1= [[Nothing]]
</dl>


<h3 style="display:none">Bottom Section</h3>
|x1= <sqf>_ESoldier1 commandFire _WSoldier1;</sqf>


[[Category:Scripting Commands|COMMANDFIRE]]
|seealso= [[fire]] [[doFire]] [[canFire]] [[fireAtTarget]] [[forceWeaponFire]] [[commandArtilleryFire]] [[commandSuppressiveFire]] [[doArtilleryFire]] [[doSuppressiveFire]] [[isManualFire]]
[[Category:Scripting Commands OFP 1.99|COMMANDFIRE]]
}}
[[Category:Scripting Commands OFP 1.96|COMMANDFIRE]]
[[Category:Scripting Commands OFP 1.46|COMMANDFIRE]]
[[Category:Scripting Commands Armed Assault|COMMANDFIRE]]
[[Category:Command_Group:_Groups|{{uc:{{PAGENAME}}}}]]
[[Category:Command_Group:_Unit_Control|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Take On Helicopters|{{uc:{{PAGENAME}}}}]]

Latest revision as of 14:25, 5 May 2022

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:
Unit Control

Syntax

Syntax:
unitName commandFire target
Parameters:
unitName: Object or Array
target: Object
Return Value:
Nothing

Examples

Example 1:
_ESoldier1 commandFire _WSoldier1;

Additional Information

See also:
fire doFire canFire fireAtTarget forceWeaponFire commandArtilleryFire commandSuppressiveFire doArtilleryFire doSuppressiveFire isManualFire

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