Difference between revisions of "CHANGED REGION START"

From Second Life Wiki
Jump to navigation Jump to search
m (some reformatting of example script)
m (<lsl> tag to <source>)
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>
<source lang="lsl2">
default
default
{
{
Line 20: Line 20:
     }
     }
}
}
</lsl>
</source>
|functions=
|functions=
{{LSL DefineRow||[[llRequestSimulatorData]]|}}
{{LSL DefineRow||[[llRequestSimulatorData]]|}}

Revision as of 15:18, 22 January 2015

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;