doArtilleryFire: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "<code>([^<]*)\[\[([a-zA-Z][a-zA-Z0-9_]+)\]\]([^<]*) *<\/code>" to "<code>$1$2$3</code>")
m (Text replacement - "<code>([^<]*)<nowiki\/?>([^<]*)<\/code>" to "<code>$1$2</code>")
Line 24: Line 24:
|r1= [[Nothing]]
|r1= [[Nothing]]


|x1= <code>Mortar doArtilleryFire [<nowiki/>[3000, 120, 1000], "8Rnd_82mm_Mo_shells", 3];</code>
|x1= <code>Mortar doArtilleryFire [[3000, 120, 1000], "8Rnd_82mm_Mo_shells", 3];</code>


|seealso= [[commandArtilleryFire]] [[getArtilleryAmmo]] [[getArtilleryETA]] [[enableEngineArtillery]] [[getArtilleryComputerSettings]] [[shownArtilleryComputer]] [[inRangeOfArtillery]] [[fire]] [[doFire]] [[commandFire]] [[canFire]] [[fireAtTarget]] [[forceWeaponFire]] [[commandSuppressiveFire]] [[doSuppressiveFire]] [[isManualFire]]
|seealso= [[commandArtilleryFire]] [[getArtilleryAmmo]] [[getArtilleryETA]] [[enableEngineArtillery]] [[getArtilleryComputerSettings]] [[shownArtilleryComputer]] [[inRangeOfArtillery]] [[fire]] [[doFire]] [[commandFire]] [[canFire]] [[fireAtTarget]] [[forceWeaponFire]] [[commandSuppressiveFire]] [[doSuppressiveFire]] [[isManualFire]]

Revision as of 10:28, 13 May 2022

{{RV|type=command

|game1= arma3 |version1= 0.50

|arg= local

|gr1= Artillery

|descr= 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.

|s1= unit doArtilleryFire [position, type, rounds]

|p1= unit: Object

|p2= position: Array format PositionAGL

|p3= type: String - Magazine class name from CfgMagazines (case sensitive).

|p4= rounds: Number

|r1= Nothing

|x1= Mortar doArtilleryFire [[3000, 120, 1000], "8Rnd_82mm_Mo_shells", 3];

|seealso= commandArtilleryFire getArtilleryAmmo getArtilleryETA enableEngineArtillery getArtilleryComputerSettings shownArtilleryComputer inRangeOfArtillery fire doFire commandFire canFire fireAtTarget forceWeaponFire commandSuppressiveFire doSuppressiveFire isManualFire }}

ansin11 - c
Posted on Apr 18, 2020 - 14:26 (UTC)

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.