---
name: "getArtilleryETA"
type: command
status: ok
groups: ["Artillery"]
arma3_since: "0.56"
locality: {"argument": "global", "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/getArtilleryETA
revid: 377528
updated: 2026-01-02T06:52:51Z
---

# getArtilleryETA

*Command · Artillery · Arma 3 v0.56*

Locality: arguments **global**

## 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

```sqf
unit getArtilleryETA [targetPosition, magazineType]
```

**Parameters:**

- `unit`: [Object](../topics/Object.md) - artillery unit
- `targetPosition`: [PositionAGLS](../topics/Position.md#positionagls) - position of the target
- `magazineType`: [String](../topics/String.md) - type of magazine used

**Returns:** [Number](../topics/Number.md)

## Examples

### Example 1

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

### Example 2

```sqf
_mortar getArtilleryETA [position _target, currentMagazine _mortar];
```

## See also

[getArtilleryAmmo](../commands/getArtilleryAmmo.md) · [commandArtilleryFire](../commands/commandArtilleryFire.md) · [doArtilleryFire](../commands/doArtilleryFire.md) · [enableEngineArtillery](../commands/enableEngineArtillery.md) · [getArtilleryComputerSettings](../commands/getArtilleryComputerSettings.md) · [shownArtilleryComputer](../commands/shownArtilleryComputer.md) · [inRangeOfArtillery](../commands/inRangeOfArtillery.md)

## Community notes

**Killzone_Kid** — 2013-08-26

To avoid wrong ETA readings, position of the target should only be obtained via [position](../commands/position.md) or [getPos](../commands/getPos.md)

<sub>Source: [BI Community Wiki — getArtilleryETA](https://community.bistudio.com/wiki/getArtilleryETA) (revision 377528).</sub>
