Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //set a random color to all faces of the prim
- SetRanColor()
- {
- llSetColor(<llFrand(1.0), llFrand(1.0), llFrand(1.0)> , ALL_SIDES);
- }
- //Get the color vector of the clicked face
- GetFaceColor()
- {
- llGetColor(llDetectedTouchFace(0));
- }
- default
- {
- state_entry()
- {
- llSetColor(<1.0, 1.0, 1.0>, ALL_SIDES);
- }
- touch_start(integer total_number)
- {
- SetRanColor();
- llSay(0, (string) GetFaceColor());
- }
- }
Add Comment
Please, Sign In to add comment