OsRegionRestart
From OpenSimulator
(Difference between revisions)
m (Added permissions and delay information) |
|||
Line 1: | Line 1: | ||
{{osslfunc | {{osslfunc | ||
|threat_level=High | |threat_level=High | ||
+ | |permissions=ESTATE_MANAGER,ESTATE_OWNER | ||
+ | |delay=0 | ||
|function_syntax=integer osRegionRestart(float seconds) | |function_syntax=integer osRegionRestart(float seconds) | ||
|ossl_example=<source lang="lsl">key owner; | |ossl_example=<source lang="lsl">key owner; |
Revision as of 19:19, 25 October 2017
integer osRegionRestart(float seconds)
| |
Restarts a region after a specified timeout. Only estate managers and administrators can successfully execute this function. | |
Threat Level | High |
Permissions | ESTATE_MANAGER,ESTATE_OWNER |
Extra Delay | 0 seconds |
Example(s) | |
key owner; integer time = 120; // Delay of restart in seconds default { state_entry() { llSetText("Region Restart\nosRegionRestart", <1.0,1.0,1.0>,1.0); } touch (integer total_number) { owner = llDetectedOwner(0); key toucher = llDetectedKey(0); if (toucher == owner) { osRegionRestart(time); string name = llKey2Name(toucher); llSay (0,"Region Restart requested by " + name + " the sim will restart in " + ((string)time) + " seconds"); } else { llSay(0,"You are not the owner"); } } } This would start a region restart after 120 seconds (two minutes). |