OsRegionRestart
From OpenSimulator
(Difference between revisions)
m |
|||
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''' || High |
|- valign="top" | |- valign="top" | ||
Line 40: | Line 40: | ||
[[Category:OSSL Functions]] | [[Category:OSSL Functions]] | ||
− |
Revision as of 12:38, 11 June 2011
OsRegionRestart | |
Threat Level | High |
Function Syntax | osRegionRestart(double 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 60 seconds. |