OsSetTerrainHeight

From OpenSimulator

(Difference between revisions)
Jump to: navigation, search
m
Line 7: Line 7:
 
| colspan="2" align="center" style=background:orange | '''{{SUBPAGENAME}}'''
 
| colspan="2" align="center" style=background:orange | '''{{SUBPAGENAME}}'''
 
|- valign="top"
 
|- valign="top"
|'''Threat Level''' || <Threat Level goes here>
+
|'''Threat Level''' || High
  
 
|- valign="top"
 
|- valign="top"
Line 33: Line 33:
  
 
[[Category:OSSL Functions]]
 
[[Category:OSSL Functions]]
[[Category:OSSL functions without threat level]]
 
 
[[Category:OSSL functions without threat level]]
 

Revision as of 12:40, 11 June 2011


NOTE : This function replaces the deprecated OsTerrainSetHeight function.



OsSetTerrainHeight
Threat Level High
Function Syntax
LSL: integer OsSetTerrainHeight(integer x, integer y, float val)
C#:  integer OsSetTerrainHeight(integer x, integer y, double val)
Example(s)
default
 {
    touch_start()
    {
       OsSetTerrainHeight(40, 101, 21.4);
       osTerrainFlush();
    }
 }

Sets terrain height X & Y Values, double = float.

osTerrainFlush should be called after all the terrain-changes have been done to update Terrain Data.

Personal tools
General
About This Wiki