commandArtilleryFire: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "</dd> </dl>" to "</dd> </dl>") |
m (Specified position as PositionAGL, added arg local) |
||
Line 3: | Line 3: | ||
|game1= arma3 | |game1= arma3 | ||
|version1= 0.50 | |version1= 0.50 | ||
|arg= local | |||
|gr1= Artillery | |gr1= Artillery | ||
Line 12: | Line 14: | ||
|s1= unit [[commandArtilleryFire]] [position, type, rounds] | |s1= unit [[commandArtilleryFire]] [position, type, rounds] | ||
|p1= | |p1= unit: [[Object]] | ||
|p2= | |p2= position: [[PositionAGL]] | ||
|p3= | |p3= type: [[String]] - Magazine class name from [[Arma_3:_CfgMagazines|CfgMagazines]] (case sensitive). | ||
|p4= | |p4= rounds: [[Number]] | ||
|r1= [[Nothing]] | |r1= [[Nothing]] | ||
Line 24: | Line 26: | ||
|x1= <code>Mortar [[commandArtilleryFire]] [<nowiki/>[3000, 120, 1000], "8Rnd_82mm_Mo_shells", 3];</code> | |x1= <code>Mortar [[commandArtilleryFire]] [<nowiki/>[3000, 120, 1000], "8Rnd_82mm_Mo_shells", 3];</code> | ||
|seealso= [[doArtilleryFire]] | |seealso= [[doArtilleryFire]] [[getArtilleryAmmo]] [[getArtilleryETA]] [[enableEngineArtillery]] [[getArtilleryComputerSettings]] [[shownArtilleryComputer]] [[inRangeOfArtillery]] [[fire]] [[doFire]] [[commandFire]] [[canFire]] [[fireAtTarget]] [[forceWeaponFire]] [[commandSuppressiveFire]] [[doSuppressiveFire]] [[isManualFire]] | ||
}} | }} | ||
Line 33: | Line 35: | ||
<dt class="note">[[User:ansin11|ansin11]]</dt> | <dt class="note">[[User:ansin11|ansin11]]</dt> | ||
<dd class="note"> | <dd class="note"> | ||
{{GVI|arma3|1.98}} 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. | |||
<br | <br><br>'''Example:''' | ||
<br | <br>The Mk6 Mortar comes with four "8Rnd_82mm_Mo_shells" magazines, giving it a total of 32 HE shells. However, {{ic|_mortar [[commandArtilleryFire]] [_somePos, "8Rnd_82mm_Mo_shells", 10];}} will only fire 8 rounds instead of 10. | ||
will only fire 8 rounds instead of 10. | |||
<br | <br><br>Similarly, ... | ||
<code>_mortar [[commandArtilleryFire]] [_somePos, "8Rnd_82mm_Mo_shells", 7]; {{cc|First burst}} | <code>_mortar [[commandArtilleryFire]] [_somePos, "8Rnd_82mm_Mo_shells", 7]; {{cc|First burst}} | ||
[[sleep]] 20; {{cc|Wait until first burst has been fired}} | [[sleep]] 20; {{cc|Wait until first burst has been fired}} | ||
_mortar [[commandArtilleryFire]] [_somePos, "8Rnd_82mm_Mo_shells", 2]; {{cc|Second burst}}</code> | _mortar [[commandArtilleryFire]] [_somePos, "8Rnd_82mm_Mo_shells", 2]; {{cc|Second burst}}</code> | ||
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. | ... 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. | ||
</dd> | </dd> | ||
</dl> | </dl> |
Revision as of 20:28, 1 August 2021
Description
- Description:
- Orders an artillery unit to fire a burst on the given position (via the radio).
- Problems:
- The unit will fire a burst even if the rounds parameter is 0 or a negative number.
- Groups:
- Artillery
Syntax
- Syntax:
- unit commandArtilleryFire [position, type, rounds]
- Parameters:
- unit: Object
- position: PositionAGL
- type: String - Magazine class name from CfgMagazines (case sensitive).
- rounds: Number
- Return Value:
- Nothing
Examples
- Example 1:
Mortar commandArtilleryFire [[3000, 120, 1000], "8Rnd_82mm_Mo_shells", 3];
Additional Information
- See also:
- doArtilleryFire getArtilleryAmmo getArtilleryETA enableEngineArtillery getArtilleryComputerSettings shownArtilleryComputer inRangeOfArtillery fire doFire commandFire canFire fireAtTarget forceWeaponFire commandSuppressiveFire 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
- Posted on April 18, 2020 - 14:28 (UTC)
- ansin11
-
1.98 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 commandArtilleryFire [_somePos, "8Rnd_82mm_Mo_shells", 10];
will only fire 8 rounds instead of 10.
Similarly, ..._mortar commandArtilleryFire [_somePos, "8Rnd_82mm_Mo_shells", 7]; // First burst sleep 20; // Wait until first burst has been fired _mortar commandArtilleryFire [_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.