SceneMan:FindAltitude

From Data Realms Wiki

Revision as of 21:45, 27 June 2010 by Petethegoat (Talk)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Function
SyntaxSceneMan:FindAltitude( (vector,number,number) Position to cast ray from, the length of the ray in pixels (0 means check the whole scene's height), the number of pixels the checker skips. )
Description:
Gets and returns the number of pixels above the terrain an object is.
ReturnsThe height of the given vector above terrain.




Example
DescriptionThis sets self.myheight to the height of the object that the script is attached to above the terrain.
Code
  1. self.myheight = SceneMan:FindAltitude(self.Pos,0,8);
Outputnil
Personal tools