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

# setPosASL

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

Locality: arguments **global** · effect **global**

## Description

Sets the object position above sea level. Given position must be in [PositionASL](../topics/Position.md#positionasl) format.

## Syntax

```sqf
object setPosASL pos
```

**Parameters:**

- `object`: [Object](../topics/Object.md)
- `pos`: [PositionASL](../topics/Position.md#positionasl)

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

## Examples

### Example 1

```sqf
player setPosASL [getPosASL player select 0, (getPosASL player select 1) + 10, getPosASL player select 2];
```

### Example 2

```sqf
_position = getPosASL _object;
_position set [2, 10]; // 10m above sea level
_object setPosASL _position;
```

## See also

[ASLToATL](../commands/ASLToATL.md) · [ATLToASL](../commands/ATLToASL.md) · [getPos](../commands/getPos.md) · [getPosASL](../commands/getPosASL.md) · [getPosATL](../commands/getPosATL.md) · [position](../commands/position.md) · [setPos](../commands/setPos.md) · [setPosASL2](../commands/setPosASL2.md) · [setPosATL](../commands/setPosATL.md) · [getTerrainHeightASL](../commands/getTerrainHeightASL.md) · [setPosWorld](../commands/setPosWorld.md) · [setVehiclePosition](../commands/setVehiclePosition.md)

## Community notes

**Hypoxic125** — 2023-02-26

As of Verson 2.10, if you use setPosX commands on a remote unit within a vehicle, the unit will remain in the vehicle. In order to avoid this, remoteExec the command to the remote client.

```sqf
if !(isNull objectParent _unit) then {
    [_unit, [0,0,0]] remoteExec ["setPosASL", _unit];
};
```

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