Difference between revisions of "CHANGED TEXTURE"
Jump to navigation
Jump to search
Line 12: | Line 12: | ||
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! | ||
{ | { | ||
llOwnerSay("The prims | llOwnerSay("The prims texture or texture attributes have changed."); | ||
} | } | ||
} | } |
Revision as of 18:57, 1 March 2007
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
Description
Constant: integer CHANGED_TEXTURE = 0x10;The integer constant CHANGED_TEXTURE has the value 0x10
Prim texture parameters have changed
Caveats
Related Articles
Functions
• | llSetTexture | |||
• | llScaleTexture | |||
• | llOffsetTexture | |||
• | llRotateTexture | |||
• | llSetPrimitiveParams | – | PRIM_TEXTURE | |
• | llSetLinkPrimitiveParams | – | PRIM_TEXTURE |
Events
• | changed |
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 texture or texture attributes have changed."); } } }