GetTerrainHeight

Revision as of 19:42, 7 June 2015 by imported>Jazzisparis (Created page with "{{Function |origin = JIP |summary = Returns the height of the <i>terrain mesh</i> at the specified (x, y) coordinates, within the current exterior <i>worldspace</i>. |name...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
< [[::Category:Functions|Category:Functions]]

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

(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