From Second Life Wiki
changed
Event: changed( integer change ){ ; }
Various changes to the object/prim trigger this event.
| • integer
| change
| –
| bit field of CHANGE_* flags
|
|
Multiple changes can be represented in a single event, so use bitwise arithmetic.
|
|
|
Examples
default
{
changed(integer change)
{
if (change & CHANGED_INVENTORY) //note that it's & and not &&... it's bitwise!
{
llOwnerSay("The inventory has changed.");
}
if (change & CHANGED_COLOR) //note that it's & and not &&... it's bitwise!
{
llOwnerSay("The color or alpha changed.");
}
if (change & CHANGED_SHAPE) //note that it's & and not &&... it's bitwise!
{
llOwnerSay("The prims shape has changed.");
}
if (change & CHANGED_SCALE) //note that it's & and not &&... it's bitwise!
{
llOwnerSay("The prims size has changed.");
}
if (change & CHANGED_TEXTURE) //note that it's & and not &&... it's bitwise!
{
llOwnerSay("The prims texture or texture attributes have changed.");
}
if (change & CHANGED_LINK) //note that it's & and not &&... it's bitwise!
{
llOwnerSay("The number of links have changed.");
}
if (change & CHANGED_ALLOWED_DROP) //note that it's & and not &&... it's bitwise!
{
llOwnerSay("The inventory has changed as a result of a user without mod permissions "+
"dropping an item on the prim and it being allowed by the script.");
}
if (change & CHANGED_OWNER) //note that it's & and not &&... it's bitwise!
{
llOwnerSay("The owner of the object has changed.");
}
if (change & CHANGED_REGION) //note that it's & and not &&... it's bitwise!
{
llOwnerSay("The region the object is in has changed.");
}
if (change & CHANGED_TELEPORT) //note that it's & and not &&... it's bitwise!
{
llOwnerSay("The object has been teleported while attached.");
}
}
}
|
Changed