OsSetTerrainTextureHeight
From OpenSimulator
(Difference between revisions)
(The first parameter *is* corner. Updated with mapping between corner value and region corner.) |
|||
Line 6: | Line 6: | ||
|permissions=ESTATE_MANAGER,ESTATE_OWNER | |permissions=ESTATE_MANAGER,ESTATE_OWNER | ||
|delay=0 | |delay=0 | ||
− | |ossl_example= | + | |ossl_example=<source lang = "lsl">// Default Terrain Textures by djphil 2018 |
+ | |||
+ | default | ||
+ | { | ||
+ | state_entry() | ||
+ | { | ||
+ | osSetTerrainTexture(0, "b8d3965a-ad78-bf43-699b-bff8eca6c975"); | ||
+ | osSetTerrainTextureHeight(0, 10.0, 60.0); | ||
+ | osSetTerrainTexture(1, "abb783e6-3e93-26c0-248a-247666855da3"); | ||
+ | osSetTerrainTextureHeight(1, 10.0, 60.0); | ||
+ | osSetTerrainTexture(2, "179cdabd-398a-9b6b-1391-4dc333ba321f"); | ||
+ | osSetTerrainTextureHeight(2, 10.0, 60.0); | ||
+ | osSetTerrainTexture(3, "beb169c7-11ea-fff2-efe5-0f24dc881df2"); | ||
+ | osSetTerrainTextureHeight(3, 10.0, 60.0); | ||
+ | } | ||
+ | } | ||
+ | </source> | ||
|additional_info= | |additional_info= | ||
}} | }} |
Revision as of 21:53, 14 February 2018
void osSetTerrainTextureHeight(integer corner, float low, float high)
| |
Set the terrain texture height for the estate. The corner values are: 0 (Southwest), 1 (Southeast), 2 (Northwest), 3 (Northeast). The values low and high are float values for the altitude measured in meters. | |
Threat Level | High |
Permissions | ESTATE_MANAGER,ESTATE_OWNER |
Extra Delay | 0 seconds |
Example(s) | |
// Default Terrain Textures by djphil 2018 default { state_entry() { osSetTerrainTexture(0, "b8d3965a-ad78-bf43-699b-bff8eca6c975"); osSetTerrainTextureHeight(0, 10.0, 60.0); osSetTerrainTexture(1, "abb783e6-3e93-26c0-248a-247666855da3"); osSetTerrainTextureHeight(1, 10.0, 60.0); osSetTerrainTexture(2, "179cdabd-398a-9b6b-1391-4dc333ba321f"); osSetTerrainTextureHeight(2, 10.0, 60.0); osSetTerrainTexture(3, "beb169c7-11ea-fff2-efe5-0f24dc881df2"); osSetTerrainTextureHeight(3, 10.0, 60.0); } } |