CHANGED COLOR: Difference between revisions
Jump to navigation
Jump to search
m example now in lsl syntax highlighting... |
Kireji Haiku (talk | contribs) m added link to PRIM_COLOR |
||
| Line 25: | Line 25: | ||
{{LSL DefineRow||[[llSetLinkColor]]|Sets link's color}} | {{LSL DefineRow||[[llSetLinkColor]]|Sets link's color}} | ||
{{LSL DefineRow||[[llSetLinkPrimitiveParams]]|Sets link's parameters}} | {{LSL DefineRow||[[llSetLinkPrimitiveParams]]|Sets link's parameters}} | ||
|constants= | |||
{{LSL DefineRow||[[PRIM_COLOR]]|}} | |||
|events= | |events= | ||
{{LSL DefineRow||[[changed]]|}} | {{LSL DefineRow||[[changed]]|}} | ||
Revision as of 09:57, 8 January 2014
| 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
Constants
| • | PRIM_COLOR |
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>