---
name: "getPosASL"
type: command
status: ok
groups: ["Positions"]
arma3_since: "0.50"
locality: {"argument": "global", "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/getPosASL
revid: 377441
updated: 2026-01-02T06:46:51Z
---

# getPosASL

*Command · Positions · Arma 3 v0.50 · introduced in Operation Flashpoint: Elite v1.00*

Locality: arguments **global**

## Description

Returns the object position height above sea level.

## Syntax

```sqf
getPosASL object
```

**Parameters:**

- `object`: [Object](../topics/Object.md)

**Returns:** [PositionASL](../topics/Position.md#positionasl)

## Examples

### Example 1

```sqf
_aslPos = getPosASL player;
```

### Example 2

```sqf
hint format ["position above sea level: %1", (getPosASL player) select 2];
```

## See also

[getPosASLVisual](../commands/getPosASLVisual.md) · [setPosASL](../commands/setPosASL.md) · [setPosASL2](../commands/setPosASL2.md) · [position](../commands/position.md) · [getPos](../commands/getPos.md) · [getPosATL](../commands/getPosATL.md) · [getPosASLW](../commands/getPosASLW.md) · [visiblePosition](../commands/visiblePosition.md) · [visiblePositionASL](../commands/visiblePositionASL.md) · [getTerrainHeightASL](../commands/getTerrainHeightASL.md) · [setUnitFreefallHeight](../commands/setUnitFreefallHeight.md)

## Community notes

**Dr Eyeball** — 2007-02-23

`getPosASL _obj select 2;` might sometimes return the vertical position above sea level, but over land for stacked objects, it returns the vertical position above the object beneath it or at least affected by this offset.
The same problem exists for [getPos](../commands/getPos.md). There was a [](../commands/getPosASL.md) thread in the BIS forums which suggested the use of the command [modelToWorld](../commands/modelToWorld.md) instead to get around this issue where an absolute vertical position is required. ArmA Ver **1.02**.

---

**SilentKiller** — 2014-03-27

According to [Code Optimisation](../topics/Code_Optimisation.md#getpos-2a_and_setpos-2a), this command is among the fastest (2x) and should be used (or [getPosATL](../commands/getPosATL.md) or, best performance-wise, [getPosWorld](../commands/getPosWorld.md)) instead of [getPos](../commands/getPos.md)/[position](../commands/position.md).

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