doArtilleryFire: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments( \("local" or "global"\))?|Effects|Multiplayer Effects( \("local" or "global"\))?|Multiplayer Exe...) |
Lou Montana (talk | contribs) m (Text replacement - " {3,}\|" to " |") |
||
Line 6: | Line 6: | ||
|gr1= Artillery | |gr1= Artillery | ||
| Orders an artillery unit to fire a burst on the given position (silently). | | Orders an artillery unit to fire a burst on the given position (silently). | ||
|pr= The unit will fire a burst even if the '''rounds''' parameter is 0 or a negative number. | |pr= The unit will fire a burst even if the '''rounds''' parameter is 0 or a negative number. | ||
| unit [[doArtilleryFire]] [position, type, rounds] | | unit [[doArtilleryFire]] [position, type, rounds] | ||
Line 24: | Line 22: | ||
| [[Nothing]] | | [[Nothing]] | ||
|x1= <code>Mortar [[doArtilleryFire]] [<nowiki/>[3000, 120, 1000], "8Rnd_82mm_Mo_shells", 3];</code> | |x1= <code>Mortar [[doArtilleryFire]] [<nowiki/>[3000, 120, 1000], "8Rnd_82mm_Mo_shells", 3];</code> | ||
| [[commandArtilleryFire]], [[getArtilleryAmmo]], [[getArtilleryETA]], [[enableEngineArtillery]], [[getArtilleryComputerSettings]], [[shownArtilleryComputer]], [[inRangeOfArtillery]], [[fire]], [[doFire]], [[commandFire]], [[canFire]], [[fireAtTarget]], [[forceWeaponFire]], [[commandSuppressiveFire]], [[doSuppressiveFire]], [[isManualFire]] | | [[commandArtilleryFire]], [[getArtilleryAmmo]], [[getArtilleryETA]], [[enableEngineArtillery]], [[getArtilleryComputerSettings]], [[shownArtilleryComputer]], [[inRangeOfArtillery]], [[fire]], [[doFire]], [[commandFire]], [[canFire]], [[fireAtTarget]], [[forceWeaponFire]], [[commandSuppressiveFire]], [[doSuppressiveFire]], [[isManualFire]] |
Revision as of 17:24, 18 January 2021
Description
- Description:
- Orders an artillery unit to fire a burst on the given position (silently).
- Problems:
- The unit will fire a burst even if the rounds parameter is 0 or a negative number.
- Groups:
- Artillery
Syntax
- Syntax:
- unit doArtilleryFire [position, type, rounds]
- Parameters:
- unit: Object
- position: Position
- type: String - Magazine class name from CfgMagazines (case sensitive).
- rounds: Number
- Return Value:
- Nothing
Examples
- Example 1:
Mortar doArtilleryFire [[3000, 120, 1000], "8Rnd_82mm_Mo_shells", 3];
Additional Information
- See also:
- commandArtilleryFiregetArtilleryAmmogetArtilleryETAenableEngineArtillerygetArtilleryComputerSettingsshownArtilleryComputerinRangeOfArtilleryfiredoFirecommandFirecanFirefireAtTargetforceWeaponFirecommandSuppressiveFiredoSuppressiveFireisManualFire
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 April 18, 2020 - 14:26 (UTC)
- ansin11
-
Arma 3 (1.98.146303): This command can not fire bursts consisting of more rounds than the given magazine type holds, even if there are several magazines of the same type available. The fire mission issued by this command ends once the artillery unit has to reload.
Example:
The Mk6 Mortar comes with four "8Rnd_82mm_Mo_shells" magazines, giving it a total of 32 HE shells. However,_mortar doArtilleryFire [_somePos, "8Rnd_82mm_Mo_shells", 10];
will only fire 8 rounds instead of 10.
Similarly,_mortar doArtilleryFire [_somePos, "8Rnd_82mm_Mo_shells", 7]; // First burst sleep 20; // Wait until first burst has been fired _mortar doArtilleryFire [_somePos, "8Rnd_82mm_Mo_shells", 2]; // Second burst
will only fire 8 rounds total instead of 9; the second round of the second burst is never fired because the artillery unit has to reload after the first round of the second burst.