Difference between revisions of "GetTerrainHeight"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>8asrun6aer
(Created page with "{{Function | origin = OBSE | summary = Returns the height of the terrain mesh at the specified x and y coordinates within the current exterior worldspace. X and Y are worlds...")
(No difference)

Revision as of 12:50, 7 January 2012

< [[::Category:Functions|Category:Functions]]

A function added by the Oblivion Script Extender.

Syntax:

(height:float) GetTerrainHeight x:float y:float

Returns the height of the terrain mesh at the specified x and y coordinates within the current exterior worldspace. X and Y are worldspace coordinates (e.g. as returned by GetPos). If the coordinates are outside of any loaded cells, returns 0.0. Note that this command does not check for collision with surfaces other than terrain.


See Also