Difference between revisions of "CHANGED TEXTURE"

From Second Life Wiki
Jump to navigation Jump to search
Line 4: Line 4:
|value={{LSL Hex|0x10}}
|value={{LSL Hex|0x10}}
|desc=Prim texture parameters have changed
|desc=Prim texture parameters have changed
|examples
|examples=
<pre>
default
{
    changed(integer change) //reset script if inventory changes
    {
        if (change & CHANGED_TEXTURE) //note that it's & and not &&... it's bitwise!
        {
            llOwnerSay("The prims size has changed.");
        }
    }
}
</pre>
|constants
|functions=
|functions=
{{LSL DefineRow||[[llSetTexture]]|}}
{{LSL DefineRow||[[llSetTexture]]|}}
{{LSL DefineRow||[[llSetPrimitiveParams]]|}}
{{LSL DefineRow||[[llScaleTexture]]|}}
{{LSL DefineRow||[[llSetLinkPrimitiveParams]]|}}
{{LSL DefineRow||[[llOffsetTexture]]|}}
{{LSL DefineRow||[[llRotateTexture]]|}}
{{LSL DefineRow||[[llSetPrimitiveParams]]|[[PRIM_TEXTURE]]}}
{{LSL DefineRow||[[llSetLinkPrimitiveParams]]|[[PRIM_TEXTURE]]}}
|events=
|events=
{{LSL DefineRow||[[changed]]|}}
{{LSL DefineRow||[[changed]]|}}

Revision as of 18:54, 1 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) //reset script if inventory changes
    {
        if (change & CHANGED_TEXTURE) //note that it's & and not &&... it's bitwise!
        {
            llOwnerSay("The prims size has changed.");
        }
    }
}

Deep Notes

Search JIRA for related Issues

Signature

integer CHANGED_TEXTURE = 0x10;