---
name: "getElevationOffset"
type: command
status: ok
groups: ["Map"]
arma3_since: "0.50"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/getElevationOffset
revid: 310776
updated: 2022-05-07T20:21:45Z
---

# getElevationOffset

*Command · Map · Arma 3 v0.50 · introduced in Arma 2: Operation Arrowhead v1.50*

## Description

Returns the map elevation offset from [map]/config.cpp.

Returns 0 if there is no elevationOffset defined in the config of the current world.

## Syntax

```sqf
getElevationOffset
```

**Returns:** [Number](../topics/Number.md) - elevation offset of the map

## Examples

### Example 1

```sqf
_offset = getElevationOffset;
```

## See also

[getTerrainHeightASL](../commands/getTerrainHeightASL.md)

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