Arma 3 Scripting

Command in Artillery

getArtilleryETA

Also available as Markdown and JSON, or read the original wiki page.

Description

Returns ETA to the target in seconds for given artillery unit based on target position and used magazine, -1 if target can't be hit.

Syntax

unit getArtilleryETA [targetPosition, magazineType]

Parameters:

Returns: Number

Examples

Example 1

_mortar getArtilleryETA [getPos _target, getArtilleryAmmo [_mortar] select 0];

Example 2

_mortar getArtilleryETA [position _target, currentMagazine _mortar];

See also

getArtilleryAmmo · commandArtilleryFire · doArtilleryFire · enableEngineArtillery · getArtilleryComputerSettings · shownArtilleryComputer · inRangeOfArtillery

Community notes

Killzone_Kid

To avoid wrong ETA readings, position of the target should only be obtained via position or getPos