Difference between revisions of "CHANGED SHAPE"

From Second Life Wiki
Jump to: navigation, search
Line 8: Line 8:
 
default
 
default
 
{
 
{
     changed(integer change) //reset script if inventory changes
+
     changed(integer change)
 
     {
 
     {
 
         if (change & CHANGED_SHAPE) //note that it's & and not &&... it's bitwise!
 
         if (change & CHANGED_SHAPE) //note that it's & and not &&... it's bitwise!

Revision as of 19:13, 6 March 2007

Description

Constant: integer CHANGED_SHAPE = 0x4;

The integer constant CHANGED_SHAPE has the value 0x4

Prim shape has changed

Related Articles

Functions

•  llSetPrimitiveParams
•  llSetLinkPrimitiveParams

Events

•  changed

Examples

default
{
    changed(integer change)
    {
        if (change & CHANGED_SHAPE) //note that it's & and not &&... it's bitwise!
        {
            llOwnerSay("The prims shape has changed.");
        }
    }
}

Deep Notes

Search JIRA for related Issues

Signature

integer CHANGED_SHAPE = 0x4;