Difference between revisions of "CHANGED TEXTURE"

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

Revision as of 19:15, 6 March 2007

Description

Constant: integer CHANGED_TEXTURE = 0x10;

The integer constant CHANGED_TEXTURE has the value 0x10

Prim texture parameters have changed

Related Articles

Examples

default
{
    changed(integer change)
    {
        if (change & CHANGED_TEXTURE) //note that it's & and not &&... it's bitwise!
        {
            llOwnerSay("The prims texture or texture attributes have changed.");
        }
    }
}

Deep Notes

Search JIRA for related Issues

Signature

integer CHANGED_TEXTURE = 0x10;