CHANGED REGION
Revision as of 11:06, 21 February 2013 by Maestro Linden (talk | contribs) (Corrected explanation about which types of prims this occurs in)
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
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 a linkset. This event does not occur in child prims of objects when they cross a region boundary.
Caveats
Related Articles
Examples
<lsl>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."); } }
}</lsl>