commandFire: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
Tag: Manual revert
 
(58 intermediate revisions by 8 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 |= Arguments in MP
|game3= arma1
|version3= 1.00


|eff= local |= Effects in MP
|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]] |= Parameter 1
|game7= arma3
|version7= 0.50


|p2= target: [[Object]] |= Parameter 2
|gr1= Unit Control


| [[Nothing]] |= Return value
|arg= local
____________________________________________________________________________________________
 
|x1= <pre>_ESoldier1 commandFire _WSoldier1</pre> |= Example 1
____________________________________________________________________________________________


| [[doFire]], [[fire]] |= See also
|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= unit [[commandFire]] target
 
|p1= unit: [[Object]] of type [[Object|Unit]] or [[Array]] of [[Object|Unit]]s


<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.96|COMMANDFIRE]]
}}
[[Category:Scripting Commands OFP 1.46|COMMANDFIRE]]
[[Category:Scripting Commands ArmA|COMMANDFIRE]]
[[Category:Command_Group:_Groups|{{uc:{{PAGENAME}}}}]]
[[Category:Command_Group:_Unit_Control|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]]

Latest revision as of 10:28, 16 June 2024

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:
unit commandFire target
Parameters:
unit: Object of type Unit or Array of Units
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