TerrainTileHeightAtPosition()

Syntax

Result = TerrainTileHeightAtPosition(#Terrain, TileX, TileY, Layer, x, y)
Description
Returns the height of the terrain tile at the specified coordinates.

Parameters

#Terrain The terrain to use.
TileX The tile 'x' index.
TileY The tile 'y' index.
Layer The layer index. The first layer index starts from 0. The maximum number of layers is defined when creating the terrain, see CreateTerrain().
x, y The position in the tile (in pixels) to get the terrain height.

Return value

Returns the terrain tile height (in world unit) at the specified coordinates.

See Also

CreateTerrain()

Supported OS

All

<- TerrainRenderMode() - Terrain Index - TerrainTileLayerMapSize() ->