commandSuppressiveFire: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(commandSuppressiveFire creation)
 
m (Text replacement - ">Posted on October ([0-9]{1})[ a-zA-Z]*, ([0-9]{4})" to ">Posted on $2-10-0$1")
 
(58 intermediate revisions by 7 users not shown)
Line 1: Line 1:
{{Command|= Comments
{{RV|type=command
____________________________________________________________________________________________


| arma3 |= Game name
|game1= arma3
|1.60|= Game version
|version1= 1.60
|arg= local |= Arguments in MP
|arg= local
|eff= local |= Effects in MP
|eff= global
____________________________________________________________________________________________


| Order the given unit to suppress a given position or target (via the radio). |= Description
|gr1= Unit Control
____________________________________________________________________________________________


| unitName '''commandFire''' target |= Syntax
|descr= Orders the given unit or a group of units to suppress the given position or target (with radio messages, see [[doSuppressiveFire]] if you don't want messages).
* When an [[Array]] of units is passed as param, only units from the same [[Group]] as the first unit in array are considered.
* The unit (units) starts firing at the given target or position random amount of shots (exact formula unknown, but seems to depend on amount of ammo unit has) after which it stops.
* [[currentCommand]] shows {{hl|"Suppress"}} and there is no way of stopping unit before it completes random amount of rounds.
* If position is passed as target param, it stays fixed.
* If object is passed as target param, it depends on what kind of object. If it is considered a proper target by the unit, it is tracked by the unit dynamically. If it is not, the position gets obtained via [[getPosWorld]], which could be different from [[Position#PositionASL|PositionASL]] of the object, and it is fixed even if the target is able to change position later.


|p1= unitName: [[Object]] or [[Array]] |= Parameter 1
|s1= unit [[commandSuppressiveFire]] target


|p2= target: [[Object]] or [[Array]] ([[Position]]) |= Parameter 2
|p1= unit: [[Object]] or [[Array]] - a single unit or array of units


| [[Nothing]] |= Return value
|p2= target: [[Object]] or [[Array]] - actual target or position of the target in format [[Position#PositionASL|PositionASL]]
____________________________________________________________________________________________
 
|x1= <pre>_soldier commandSuppressiveFire [1869.508,5760.962,0.000]
</pre> |= Example 1
|x2= <pre>_soldier commandSuppressiveFire cursorTarget
</pre> |= Example 2
____________________________________________________________________________________________


| [[doSuppressiveFire]], [[commandFire]], [[doFire]], [[fire]], [[forceWeaponFire]], [[fireAtTarget]] |= See also
|r1= [[Nothing]]


|x1= <sqf>_soldier commandSuppressiveFire [1869.508,5760.962,0.000];</sqf>
|x2= <sqf>_soldier commandSuppressiveFire cursorTarget;</sqf>
|seealso= [[fire]] [[doFire]] [[commandFire]] [[canFire]] [[fireAtTarget]] [[forceWeaponFire]] [[commandArtilleryFire]] [[doArtilleryFire]] [[doSuppressiveFire]] [[isManualFire]] [[suppressFor]]
}}
}}


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


<!-- Note Section END -->
<dt></dt>
<dd class="notedate">Posted on 2016-10-08 - 16:19 (UTC)</dd>
<dt class="note">[[User:Fett Li|Fett Li]]</dt>
<dd class="note">
Command expects position as second argument in format ASL in A3 1.64.138497.
</dd>
 
</dl>
</dl>
<h3 style="display:none">Bottom Section</h3>
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]

Latest revision as of 23:12, 13 May 2023

Hover & click on the images for description

Description

Description:
Orders the given unit or a group of units to suppress the given position or target (with radio messages, see doSuppressiveFire if you don't want messages).
  • When an Array of units is passed as param, only units from the same Group as the first unit in array are considered.
  • The unit (units) starts firing at the given target or position random amount of shots (exact formula unknown, but seems to depend on amount of ammo unit has) after which it stops.
  • currentCommand shows "Suppress" and there is no way of stopping unit before it completes random amount of rounds.
  • If position is passed as target param, it stays fixed.
  • If object is passed as target param, it depends on what kind of object. If it is considered a proper target by the unit, it is tracked by the unit dynamically. If it is not, the position gets obtained via getPosWorld, which could be different from PositionASL of the object, and it is fixed even if the target is able to change position later.
Groups:
Unit Control

Syntax

Syntax:
unit commandSuppressiveFire target
Parameters:
unit: Object or Array - a single unit or array of units
target: Object or Array - actual target or position of the target in format PositionASL
Return Value:
Nothing

Examples

Example 1:
_soldier commandSuppressiveFire [1869.508,5760.962,0.000];
Example 2:
_soldier commandSuppressiveFire cursorTarget;

Additional Information

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

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


Posted on 2016-10-08 - 16:19 (UTC)
Fett Li
Command expects position as second argument in format ASL in A3 1.64.138497.