CHANGED_COLOR
constant
Constant
integer CHANGED_COLOR = 0x2;Object's Blinn-Phong color or alpha parameters have changed.
Constant groups
Other ChangeType values (12)
CHANGED_ALLOWED_DROP0x40CHANGED_INVENTORY0x1CHANGED_LINK0x20CHANGED_MEDIA0x800CHANGED_OWNER0x80CHANGED_REGION0x100CHANGED_REGION_START0x400CHANGED_RENDER_MATERIAL0x1000CHANGED_SCALE0x8CHANGED_SHAPE0x4CHANGED_TELEPORT0x200CHANGED_TEXTURE0x10
Prim Blinn-Phong color or alpha parameters have changed
Examples
Section titled “Examples”Example 1
default{ changed(integer change) {
if (change & CHANGED_COLOR) //note that it's & and not &&... it's bitwise! { llOwnerSay("The color or alpha changed."); } }}See also
Section titled “See also”Constants
Section titled “Constants”Functions
Section titled “Functions”llSetAlpha— Sets the prim’s alphallSetColor— Sets the prim’s colorllSetLinkAlpha— Sets link’s alphallSetLinkColor— Sets link’s color
Events
Section titled “Events”Original wiki source
Some wiki templates and tables need their original context. View this article on the Second Life Wiki. Technical wording and examples are retained from the source; historical guidance may differ from current behavior.