CHANGED COLOR: Difference between revisions
Jump to navigation
Jump to search
Gally Young (talk | contribs) m fixe |
m example now in lsl syntax highlighting... |
||
| Line 5: | Line 5: | ||
|desc=Prim color or alpha parameters have changed | |desc=Prim color or alpha parameters have changed | ||
|examples= | |examples= | ||
< | <lsl> | ||
default | default | ||
{ | { | ||
changed(integer change) | changed(integer change) | ||
{ | { | ||
if (change & CHANGED_COLOR) //note that it's & and not &&... it's bitwise! | if (change & CHANGED_COLOR) //note that it's & and not &&... it's bitwise! | ||
{ | { | ||
| Line 16: | Line 17: | ||
} | } | ||
} | } | ||
</ | </lsl> | ||
|functions= | |functions= | ||
{{LSL DefineRow||[[llSetAlpha]]|Sets the prim's alpha}} | {{LSL DefineRow||[[llSetAlpha]]|Sets the prim's alpha}} | ||
Revision as of 16:45, 27 July 2008
| LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
Description
Constant: integer CHANGED_COLOR = 0x2;The integer constant CHANGED_COLOR has the value 0x2
Prim color or alpha parameters have changed
Caveats
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
<lsl> default {
changed(integer change)
{
if (change & CHANGED_COLOR) //note that it's & and not &&... it's bitwise!
{
llOwnerSay("The color or alpha changed.");
}
}
} </lsl>