GetTerrainHeight

From GECK
Jump to: navigation, search


A function added by the JIP NVSE Plugin.

Description

Returns the height of the terrain mesh at the specified (x, y) coordinates, within the current exterior worldspace.

Syntax

[help]
(height:float) GetTerrainHeight xCoord:float yCoord:float

Example

set fTerrainHeight to GetTerrainHeight 22680.72 115090.25 

Notes

  • X and Y are worldspace coordinates (e.g. as returned by GetPos).
  • If the coordinates are outside of any loaded cells, 0 is returned.
  • This function does not check for collision with surfaces other than terrain.

See Also