Difference between revisions of "CHANGED REGION START"

From Second Life Wiki
Jump to navigation Jump to search
m
m (Replaced <source> with <syntaxhighlight>)
 
(10 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{LSL_Generic/pre-release|constant}}{{LSL Constant
{{LSL Constant
|name=CHANGED_REGION_START
|name=CHANGED_REGION_START
|type=integer
|type=integer
Line 6: Line 6:
|notes=When a region is (re)started all [[http request|HTTP server]] URLs are automatically released and invalidated.
|notes=When a region is (re)started all [[http request|HTTP server]] URLs are automatically released and invalidated.
|examples=
|examples=
<lsl>
<syntaxhighlight lang="lsl2">
default
default
{
{
     changed(integer change)
     changed(integer change)
     {
     {
        if (change & CHANGED_REGION_START) //note that it's & and not &&... it's bitwise!
    // note that it's & and not &&... it's bitwise!
        if (change & CHANGED_REGION_START)
         {
         {
             llOwnerSay("The region has come online.");
             key owner = llGetOwner();
            string region = llGetRegionName();
            llInstantMessage(owner, "Region '" + region + "' has restarted.");
         }
         }
     }
     }
}
}
</lsl>
</syntaxhighlight>
|functions=
|functions=
{{LSL DefineRow||[[llRequestSimulatorData]]|}}
{{LSL DefineRow||[[llRequestSimulatorData]]|}}
Line 25: Line 28:
*Suggestion: {{Jira|SVC-1086}} - LSL http_server
*Suggestion: {{Jira|SVC-1086}} - LSL http_server
*Suggestion: {{Jira|SVC-3773}} - Change CHANGED_REGION_RESTART to CHANGED_REGION_START
*Suggestion: {{Jira|SVC-3773}} - Change CHANGED_REGION_RESTART to CHANGED_REGION_START
*Implementation: {{SVN|1836|rev=112899 |trunk=*|anchor=file15|ver=1.24.0.0|ser=1.27.0.112940}} ~ Client [[Release Notes/Second Life Release/1.24]] ~ [[Release Notes/Second Life Server/1.27]]
*Implementation: {{SVN|1836|rev=112899 |trunk=*|anchor=file15|ver=1.23.0.0|ser=1.27.0.112940}} ~ Client [[Release Notes/Second Life Release/1.23|1.23]] ~ Server [[Release Notes/Second Life Server/1.27|1.27]]
|cat1=Region
|cat1=Region
|cat2=HTTP/Server
|cat2=HTTP/Server

Latest revision as of 02:49, 17 June 2023

Description

Constant: integer CHANGED_REGION_START = 0x400;

The integer constant CHANGED_REGION_START has the value 0x400

The region containing the object has just come online.

Caveats


Related Articles

Functions

•  llRequestSimulatorData

Events

•  changed

Examples

default
{
    changed(integer change)
    {
    //  note that it's & and not &&... it's bitwise!
        if (change & CHANGED_REGION_START)
        {
            key owner = llGetOwner();
            string region = llGetRegionName();
            llInstantMessage(owner, "Region '" + region + "' has restarted.");
        }
    }
}

Notes

When a region is (re)started all HTTP server URLs are automatically released and invalidated.

Deep Notes

History

Search JIRA for related Issues

Signature

integer CHANGED_REGION_START = 0x400;