System GetTerrainElevation

From CryWiki

Jump to: navigation, search

System.GetTerrainElevation(vec3)

Description

Gets the terrain elevation at a certain position.

Arguments

  1. Position

Returns

The height of the terrain at the position (Number)

Example

Lua (example)
local height = System.GetTerrainElevation(g_localActor:GetPos());


Personal tools