doSuppressiveFire: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\| *((\[\[[a-zA-Z0-9_ |()]+\]\],? ?)+) * \}\}" to "|seealso= $1 }}") |
Lou Montana (talk | contribs) m (Text replacement - "(\|[pr][0-9]+ *= *[^- ]*) *- *A([a-z ])" to "$1 - a$2") |
||
(23 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{RV|type=command | {{RV|type=command | ||
| arma3 | |game1= arma3 | ||
|1.60 | |version1= 1.60 | ||
|arg= local | |arg= local | ||
|eff= global | |eff= global | ||
|gr1= Unit Control | |gr1= Unit Control | ||
| 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). | |descr= 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. | * 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. | * 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 | * [[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 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. | * 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. | ||
| unit | |s1= unit [[doSuppressiveFire]] target | ||
|p1= unit: [[Object]] or [[Array]] - a single unit or array of units | |p1= unit: [[Object]] or [[Array]] - a single unit or array of units | ||
|p2= target: [[Object]] or [[Array]] - actual target or position of the target in format [[PositionASL]] | |p2= target: [[Object]] or [[Array]] - actual target or position of the target in format [[Position#PositionASL|PositionASL]] | ||
| [[Nothing]] | |r1= [[Nothing]] | ||
| | |x1= <sqf>_soldier doSuppressiveFire [1869.508,5760.962,0.000];</sqf> | ||
|x2= <sqf>units player doSuppressiveFire cursorTarget;</sqf> | |||
|seealso= [[suppressFor]] [[fire]] [[doFire]] [[commandFire]] [[canFire]] [[fireAtTarget]] [[forceWeaponFire]] [[commandArtilleryFire]] [[commandSuppressiveFire]] [[doArtilleryFire]] [[isManualFire]] | |||
}} | |||
Latest revision as of 15:23, 8 November 2023
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:
- Unit Control
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:
Additional Information
- See also:
- suppressFor fire doFire commandFire canFire fireAtTarget forceWeaponFire commandArtilleryFire commandSuppressiveFire doArtilleryFire 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