OsReplaceRegionEnvironment
From OpenSimulator
(Difference between revisions)
(Created page with "{{osslfunc |threat_level=ignored |permissions= Prim owner must have estate manager rights |delay=0 |function_syntax=integer osReplaceRegionEnvironment(integer transition, stri...") |
|||
Line 13: | Line 13: | ||
* daylenght in hours - if zero, current is used. Range 4 to 168 | * daylenght in hours - if zero, current is used. Range 4 to 168 | ||
* dayoffset in hours - offset from UTC. Range -11.5 to 11.5. if outside range current is used | * dayoffset in hours - offset from UTC. Range -11.5 to 11.5. if outside range current is used | ||
− | * altitudes in meters - defines environment | + | * altitudes in meters - defines environment transition altitudes 1 to 3 levels. Range 1 to 4000. If 0, current is used. PLease keep them sorted ( 1 < 2 < 3) |
* if return value is negative, it failed. | * if return value is negative, it failed. | ||
* transition should be the viewer transition time to the new one. May not work on most viewers. | * transition should be the viewer transition time to the new one. May not work on most viewers. |
Revision as of 12:03, 3 July 2020
integer osReplaceRegionEnvironment(integer transition, string daycycle, float daylenght, float dayoffset, float altitude1, float altitude2, float altitude3)
| |
Replaces region dayclycle.
| |
Threat Level | This function does not do a threat level check |
Permissions | Prim owner must have estate manager rights |
Extra Delay | 0 seconds |
Example(s) | |
// | |
Notes | |
Added in 0.9.2 |