Difference between revisions of "CHANGED REGION START"

From Second Life Wiki
Jump to navigation Jump to search
(New page: {{LSL Constant |name=CHANGED_REGION_START |type=integer |value={{LSL Hex|0x400}} |desc=Region has been restarted. |examples= <lsl> default { changed(integer change) { if (c...)
 
m (Replaced <source> with <syntaxhighlight>)
 
(16 intermediate revisions by 4 users not shown)
Line 3: Line 3:
|type=integer
|type=integer
|value={{LSL Hex|0x400}}
|value={{LSL Hex|0x400}}
|desc=Region has been restarted.
|desc=The region containing the object has just come online.
|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 restarted.");
             key owner = llGetOwner();
            string region = llGetRegionName();
            llInstantMessage(owner, "Region '" + region + "' has restarted.");
         }
         }
     }
     }
}
}
</lsl>
</syntaxhighlight>
|functions=
|functions=
{{LSL DefineRow||[[llRequestSimulatorData]]|}}
{{LSL DefineRow||[[llRequestSimulatorData]]|}}
|events=
|events=
{{LSL DefineRow||[[changed]]|}}
{{LSL DefineRow||[[changed]]|}}
|history=
*Suggestion: {{Jira|SVC-1086}} - LSL http_server
*Suggestion: {{Jira|SVC-3773}} - Change CHANGED_REGION_RESTART to CHANGED_REGION_START
*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
|cat2=HTTP/Server
|cat3
|cat3
|cat4
|cat4
}}
}}

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;