CHANGED REGION: Difference between revisions
Jump to navigation
Jump to search
added details for CHANGED_REGION |
mNo edit summary |
||
Line 5: | Line 5: | ||
|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. | |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= | ||
< | <lsl>default | ||
default | |||
{ | { | ||
changed(integer change) | changed(integer change) | ||
Line 15: | Line 14: | ||
} | } | ||
} | } | ||
} | }</lsl> | ||
</ | |||
|functions= | |functions= | ||
{{LSL DefineRow||[[llGetRegionName]]|}} | {{LSL DefineRow||[[llGetRegionName]]|}} | ||
|events= | |events= | ||
{{LSL DefineRow||[[changed]]|}} | {{LSL DefineRow||[[changed]]|}} | ||
|cat1 | |cat1=Region | ||
|cat2 | |cat2 | ||
|cat3 | |cat3 | ||
|cat4 | |cat4 | ||
}} | }} |
Revision as of 12:30, 5 August 2008
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 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
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>