Difference between revisions of "CHANGED REGION"
Jump to navigation
Jump to search
Line 4: | Line 4: | ||
|value={{LSL Hex|0x100}} | |value={{LSL Hex|0x100}} | ||
|desc=The object has changed region. | |desc=The object has changed region. | ||
|examples | |examples= | ||
<pre> | |||
default | |||
{ | |||
changed(integer change) //reset script if inventory changes | |||
{ | |||
if (change & CHANGED_REGION) //note that it's & and not &&... it's bitwise! | |||
{ | |||
llOwnerSay("The region the object is in has changed."); | |||
} | |||
} | |||
} | |||
</pre> | |||
|functions= | |functions= | ||
{{LSL DefineRow||[[llGetRegionName]]|}} | {{LSL DefineRow||[[llGetRegionName]]|}} |
Revision as of 18:11, 1 March 2007
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.
Caveats
Related Articles
Examples
default { changed(integer change) //reset script if inventory changes { if (change & CHANGED_REGION) //note that it's & and not &&... it's bitwise! { llOwnerSay("The region the object is in has changed."); } } }