TerrainHeight()

Syntax

Result = TerrainHeight(#Terrain, x, z)
Description
Gets the terrain height at the specified position in the world.

Parameters

#Terrain The terrain to use.
x, z The position in the world (in world unit) to get the terrain height.

Return value

Returns the terrain height (in world unit) at the specified position. If the terrain is not found at the specified position, the result will be zero.

See Also

CreateTerrain()

Supported OS

All

<- SetupTerrains() - Terrain Index - TerrainLocate() ->