Difference between revisions of "CHANGED OWNER"
Jump to navigation
Jump to search
Line 4: | Line 4: | ||
|value={{LSL Hex|0x80}} | |value={{LSL Hex|0x80}} | ||
|desc=The object has changed owners. | |desc=The object has changed owners. | ||
|examples | |examples= | ||
<pre> | |||
default | |||
{ | |||
changed(integer change) //reset script if inventory changes | |||
{ | |||
if (change & CHANGED_OWNER) //note that it's & and not &&... it's bitwise! | |||
{ | |||
llOwnerSay("The owner of the object has changed."); | |||
} | |||
} | |||
} | |||
</pre> | |||
|functions | |functions | ||
|events= | |events= |
Revision as of 18:02, 1 March 2007
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
Description
Constant: integer CHANGED_OWNER = 0x80;The integer constant CHANGED_OWNER has the value 0x80
The object has changed owners.
Caveats
Related Articles
Events
• | changed |
Examples
default { changed(integer change) //reset script if inventory changes { if (change & CHANGED_OWNER) //note that it's & and not &&... it's bitwise! { llOwnerSay("The owner of the object has changed."); } } }