Difference between revisions of "CHANGED REGION"
Jump to navigation
Jump to search
(added details for CHANGED_REGION) |
m (Replaced <source> with <syntaxhighlight>) |
||
(4 intermediate revisions by 3 users not shown) | |||
Line 3: | Line 3: | ||
|type=integer | |type=integer | ||
|value={{LSL Hex|0x100}} | |value={{LSL Hex|0x100}} | ||
|desc=The | |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= | ||
< | <syntaxhighlight lang="lsl2">default | ||
default | |||
{ | { | ||
changed(integer change) | changed(integer change) | ||
Line 15: | Line 14: | ||
} | } | ||
} | } | ||
} | }</syntaxhighlight> | ||
</ | |||
|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 | ||
}} | }} |
Latest revision as of 08:55, 11 February 2023
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 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
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.");
}
}
}