Difference between revisions of "CHANGED COLOR"

From Second Life Wiki
Jump to navigation Jump to search
Line 4: Line 4:
|value={{LSL Hex|0x2}}
|value={{LSL Hex|0x2}}
|desc=Prim color or alpha parameters have changed
|desc=Prim color or alpha parameters have changed
|examples
|examples=
<pre>
default
{
    changed(integer change) //reset script if inventory changes
    {
        if (change & CHANGED_COLOR) //note that it's & and not &&... it's bitwise!
        {
            llOwnerSay("The color or alpha changed.");
        }
    }
}
</pre>
|functions=
|functions=
{{LSL DefineRow||[[llSetAlpha]]|Sets the prim's alpha}}
{{LSL DefineRow||[[llSetAlpha]]|Sets the prim's alpha}}

Revision as of 18:47, 1 March 2007

Description

Constant: integer CHANGED_COLOR = 0x2;

The integer constant CHANGED_COLOR has the value 0x2

Prim color or alpha parameters have changed

Related Articles

Functions

•  llSetAlpha Sets the prim's alpha
•  llSetColor Sets the prim's color
•  llSetPrimitiveParams Sets the prim's parameters
•  llSetLinkAlpha Sets link's alpha
•  llSetLinkColor Sets link's color
•  llSetLinkPrimitiveParams Sets link's parameters

Events

•  changed

Examples

default
{
    changed(integer change) //reset script if inventory changes
    {
        if (change & CHANGED_COLOR) //note that it's & and not &&... it's bitwise!
        {
            llOwnerSay("The color or alpha changed.");
        }
    }
}

Deep Notes

Search JIRA for related Issues

Signature

integer CHANGED_COLOR = 0x2;