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:
position: Position2D or Position3D - Position3D the Z value is ignored
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