Difference between revisions of "Color-to-Vector Tool"

From Second Life Wiki
Jump to navigation Jump to search
(New Example Script)
 
m (add LSL Examples categgory tag)
Line 12: Line 12:
}
}
</pre>
</pre>
[[Category:LSL Examples]]

Revision as of 21:08, 20 June 2007

Say the Prim's Color Vector

This script is useful as a WYSIWYG color reporter. Each time the prim's color changes, the color vector is chatted to the owner. Note, it reports the color of face 0(zero) by default.

integer FACE = 0;

default {
    changed(integer change) {
        if (change & CHANGED_COLOR) llOwnerSay("Color Vector = " + (string)llGetColor(FACE));
    }
}