OsTerrainFlush

From OpenSimulator

(Difference between revisions)
Jump to: navigation, search
Line 2: Line 2:
 
| 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''' || VeryLow
  
 
|- valign="top"
 
|- valign="top"
Line 10: Line 10:
 
</source>
 
</source>
 
|- valign="top"
 
|- valign="top"
|'''Example(s)||
+
|'''Example(s)||<source lang="lsl">
 +
default
 +
{
 +
    touch_start()
 +
    {
 +
      osTerrainSetHeight(40, 101, 21.4);
 +
      osTerrainFlush();
 +
    }
 +
}
 +
</source>
 +
 
  
 
|}
 
|}
Line 19: Line 29:
  
 
[[Category:OSSL Functions]]
 
[[Category:OSSL Functions]]
[[Category:OSSL_functions_without_example]]
 
[[Category:OSSL functions without threat level]]
 

Revision as of 12:23, 11 June 2011

OsTerrainFlush
Threat Level VeryLow
Function Syntax
LSL: null osTerrainFlush(); 
C# : null osTerrainFlush()
Example(s)
default
 {
    touch_start()
    {
       osTerrainSetHeight(40, 101, 21.4);
       osTerrainFlush();
    }
 }


Function updates terrain changes to OpenSim database. This should be called after all the terrain-changes have been done to update Terrain Data.

Used in conjunction with OsTerrainSetHeight

Personal tools
General
About This Wiki