Warning
This command is deprecated. Use getTerrainHeight instead.
Description
Returns terrain height at the specified location.
Note
Unlike getTerrainHeightASL which returns the exact position's height, this commands returns the apex of the terrain polygon.
Caution
This information is obsolete. This command is subject to be removed and replaced with: getTerrainHeight
Syntax
diag_getTerrainHeight positionWorld
Parameters:
positionWorld: Position2D or Position3D - position in world coordinates either in Position2D or Position3D
Returns: Number - terrain height
Examples
Example 1
private _h = diag_getTerrainHeight position player;