doSuppressiveFire: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(Added suppressFor to See lso)
No edit summary
(9 intermediate revisions by 4 users not shown)
Line 5: Line 5:
|1.60|= Game version
|1.60|= Game version
|arg= local |= Arguments in MP
|arg= local |= Arguments in MP
|eff= local |= Effects in MP
|eff= global |= Effects in MP
____________________________________________________________________________________________
____________________________________________________________________________________________


| Order the given unit to suppress a given position or target (without radio messages). |= Description
| Orders the given unit or a group of units to suppress the given position or target (without radio messages, see [[commandSuppressiveFire]] is you need 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 <tt>"Suppress"</tt> 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. |DESCRIPTION=
____________________________________________________________________________________________
____________________________________________________________________________________________


| unitName '''doSuppressiveFire''' target |= Syntax
| unit '''doSuppressiveFire''' target |SYNTAX=


|p1= unitName: [[Object]] or [[Array]] |= Parameter 1
|p1= unit: [[Object]] or [[Array]] - a single unit or array of units|PARAMETER1=


|p2= target: [[Object]] or [[Array]] ([[Position]]) |= Parameter 2
|p2= target: [[Object]] or [[Array]] - actual target or position of the target in format [[PositionASL]] |PARAMETER2=


| [[Nothing]] |= Return value
| [[Nothing]] |RETURNVALUE=
____________________________________________________________________________________________
____________________________________________________________________________________________
   
   
|x1= <pre>_soldier doSuppressiveFire [1869.508,5760.962,0.000]
|x1= <code>_soldier [[doSuppressiveFire]] [1869.508,5760.962,0.000]
</pre> |= Example 1
</code> |EXAMPLE1=
|x2= <pre>_soldier doSuppressiveFire cursorTarget
|x2= <code>_soldier [[doSuppressiveFire]] [[cursorTarget]]
</pre> |= Example 2
</code> |EXAMPLE2=
____________________________________________________________________________________________
____________________________________________________________________________________________


| [[commandSuppressiveFire]], [[commandFire]], [[doFire]], [[fire]], [[forceWeaponFire]], [[fireAtTarget]], [[suppressFor]] |= See also
|[[suppressFor]], [[fire]], [[doFire]], [[commandFire]], [[canFire]], [[fireAtTarget]], [[forceWeaponFire]], [[commandArtilleryFire]], [[commandSuppressiveFire]], [[doArtilleryFire]], [[isManualFire]] |SEEALSO=


}}
}}
Line 40: Line 45:


[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
<!-- CONTINUE Notes -->
<dl class="command_description">
<dd class="notedate">Posted on October 8, 2016 - 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>
<!-- DISCONTINUE Notes -->

Revision as of 11:55, 8 May 2019

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 (without radio messages, see commandSuppressiveFire is you need 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:
Uncategorised

Syntax

Syntax:
unit doSuppressiveFire 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 doSuppressiveFire [1869.508,5760.962,0.000]
Example 2:
_soldier doSuppressiveFire cursorTarget

Additional Information

See also:
suppressForfiredoFirecommandFirecanFirefireAtTargetforceWeaponFirecommandArtilleryFirecommandSuppressiveFiredoArtilleryFireisManualFire

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

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