Arma 3 Scripting

getTerrainHeightASL

  • Arma 3 v0.50
  • First in Arma 2: Operation Arrowhead v1.55

Command · Markdown · JSON · original wiki page

Description

Returns the terrain height above the sea for the given position.

Syntax

getTerrainHeightASL position

Parameters:

Returns: Number

Examples

Example 1

_height = getTerrainHeightASL (getPosATL player);

Example 2

_height = getTerrainHeightASL [5213,3245];

Example 3

_seaDepth = abs (getTerrainHeightASL getPosATL player); // sea depth at player's position

See also

setPosASL · getPosASL · getPosATL · ASLToATL · ATLToASL · getElevationOffset