SceneMan:FindAltitude
From Data Realms Wiki
Revision as of 21:45, 27 June 2010 by Petethegoat (Talk)
Function | |
---|---|
Syntax | SceneMan: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. | |
Returns | The height of the given vector above terrain. |
Example | |
---|---|
Description | This sets self.myheight to the height of the object that the script is attached to above the terrain. |
Code |
|
Output | nil |