OsRegionRestart

From OpenSimulator

(Difference between revisions)
Jump to: navigation, search
m
Line 1: Line 1:
{| width="100%" style="border: thin solid black"
+
{{osslfunc|
| colspan="2" align="center" style=background:orange | '''{{SUBPAGENAME}}'''
+
threat_level = High
|- valign="top"
+
|
|'''Threat Level''' || High
+
function_syntax = <source lang="lsl">
 
+
|- valign="top"
+
|'''Function Syntax''' || <source lang="lsl">
+
 
osRegionRestart(double seconds);
 
osRegionRestart(double seconds);
 
</source>
 
</source>
|- valign="top"
+
|
|'''Example(s)||<source lang="lsl">key owner;
+
ossl_example = <source lang="lsl">key owner;
 
integer time = 120; // Delay of restart in seconds
 
integer time = 120; // Delay of restart in seconds
 
default
 
default
Line 36: Line 33:
 
}</source>
 
}</source>
 
This would start a region restart after 60 seconds.
 
This would start a region restart after 60 seconds.
 
+
|  
|}
+
additional_info =
 
+
|
[[Category:OSSL Functions]]
+
}}

Revision as of 16:15, 12 June 2011

osRegionRestart(double seconds);
No descriptions provided
Threat Level High
Permissions No permissions specified
Delay No function delay specified
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.

Personal tools
General
About This Wiki