Difference between revisions of "CHANGED REGION"

From Second Life Wiki
Jump to navigation Jump to search
m (<lsl> tag to <source>)
m (Replaced <source> with <syntaxhighlight>)
 
Line 5: Line 5:
|desc=The object has changed region by crossing a region boundary (or by teleporting, if attached). This event only occurs in the root prim of a linkset. This event does not occur in child prims of objects when they cross a region boundary.  
|desc=The object has changed region by crossing a region boundary (or by teleporting, if attached). This event only occurs in the root prim of a linkset. This event does not occur in child prims of objects when they cross a region boundary.  
|examples=
|examples=
<source lang="lsl2">default
<syntaxhighlight lang="lsl2">default
{
{
     changed(integer change)
     changed(integer change)
Line 14: Line 14:
         }
         }
     }
     }
}</source>
}</syntaxhighlight>
|functions=
|functions=
{{LSL DefineRow||[[llGetRegionName]]|}}
{{LSL DefineRow||[[llGetRegionName]]|}}

Latest revision as of 08:55, 11 February 2023

Description

Constant: integer CHANGED_REGION = 0x100;

The integer constant CHANGED_REGION has the value 0x100

The object has changed region by crossing a region boundary (or by teleporting, if attached). This event only occurs in the root prim of a linkset. This event does not occur in child prims of 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;