Difference between revisions of "CHANGED REGION"

From Second Life Wiki
Jump to navigation Jump to search
m
(added details for CHANGED_REGION)
Line 3: Line 3:
|type=integer
|type=integer
|value={{LSL Hex|0x100}}
|value={{LSL Hex|0x100}}
|desc=The object has changed region.
|desc=The attached object has changed region by teleporting or by crossing a region boundary. This event only occurs in the root prim of an attachment. This event does not occur in child prims of attachments, nor does it occur in unattached objects when they cross a region boundary.  
|examples=
|examples=
<pre>
<pre>

Revision as of 13:39, 19 March 2007

Description

Constant: integer CHANGED_REGION = 0x100;

The integer constant CHANGED_REGION has the value 0x100

The attached object has changed region by teleporting or by crossing a region boundary. This event only occurs in the root prim of an attachment. This event does not occur in child prims of attachments, nor does it occur in unattached objects when they cross a region boundary.

Caveats


Related Articles

Functions

•  llGetRegionName

Events

•  changed

Examples

default
{
    changed(integer change)
    {
        if (change & CHANGED_REGION) //note that it's & and not &&... it's bitwise!
        {
            llOwnerSay("The region the object is in has changed.");
        }
    }
}

Deep Notes

Search JIRA for related Issues

Signature

integer CHANGED_REGION = 0x100;