Arma 3 Scripting

Command in Diagnostic

diag_getTerrainHeight

Also available as Markdown and JSON, or read the original wiki page.

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:

Returns: Number - terrain height

Examples

Example 1

private _h = diag_getTerrainHeight position player;

See also

diag_setTerrainHeight