Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- say(string message)
- {
- llSay(PUBLIC_CHANNEL, message);
- }
- default
- {
- touch_start(integer num_detected)
- {
- integer face = llDetectedTouchFace(0);
- if (face == TOUCH_INVALID_FACE)
- {
- say("The touched face could not be determined");
- }
- else if (face == 0)
- {
- say("You touched face number " + (string) face);
- llSetColor(<1.0,0.0,0.0>,face);
- llSleep(5.0);
- llSetColor(<1.0,1.0,1.0>,face);
- }
- else if (face == 1)
- {
- say("You touched face number " + (string) face);
- llSetColor(<0.0,0.0,0.0>,face);
- llSleep(5.0);
- llSetColor(<1.0,1.0,1.0>,face);
- }
- else if (face == 2)
- {
- say("You touched face number " + (string) face);
- llSetColor(<0.0,1.0,1.0>,face);
- llSleep(5.0);
- llSetColor(<1.0,1.0,1.0>,face);
- }
- else if (face == 3)
- {
- say("You touched face number " + (string) face);
- llSetColor(<0.0,0.0,1.0>,face);
- llSleep(5.0);
- llSetColor(<1.0,1.0,1.0>,face);
- }
- else if (face == 4)
- {
- say("You touched face number " + (string) face);
- llSetColor(<0.0,1.0,0.0>,face);
- llSleep(5.0);
- llSetColor(<1.0,1.0,1.0>,face);
- }
- else if (face == 5)
- {
- say("You touched face number " + (string) face);
- llSetColor(<1.0,1.0,1.0>,face);
- llSleep(5.0);
- llSetColor(<1.0,1.0,1.0>,face);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement