Advertisement
Gayngel

Untitled

Feb 24th, 2015
578
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.68 KB | None | 0 0
  1. say(string message)
  2. {
  3. llSay(PUBLIC_CHANNEL, message);
  4. }
  5.  
  6. default
  7. {
  8. touch_start(integer num_detected)
  9. {
  10. integer face = llDetectedTouchFace(0);
  11.  
  12. if (face == TOUCH_INVALID_FACE)
  13. {
  14. say("The touched face could not be determined");
  15. }
  16.  
  17. else if (face == 0)
  18. {
  19. say("You touched face number " + (string) face);
  20. llSetColor(<1.0,0.0,0.0>,face);
  21. llSleep(5.0);
  22. llSetColor(<1.0,1.0,1.0>,face);
  23. }
  24.  
  25. else if (face == 1)
  26. {
  27. say("You touched face number " + (string) face);
  28. llSetColor(<0.0,0.0,0.0>,face);
  29. llSleep(5.0);
  30. llSetColor(<1.0,1.0,1.0>,face);
  31. }
  32.  
  33. else if (face == 2)
  34. {
  35. say("You touched face number " + (string) face);
  36. llSetColor(<0.0,1.0,1.0>,face);
  37. llSleep(5.0);
  38. llSetColor(<1.0,1.0,1.0>,face);
  39. }
  40.  
  41.  
  42. else if (face == 3)
  43. {
  44. say("You touched face number " + (string) face);
  45. llSetColor(<0.0,0.0,1.0>,face);
  46. llSleep(5.0);
  47. llSetColor(<1.0,1.0,1.0>,face);
  48. }
  49.  
  50.  
  51. else if (face == 4)
  52. {
  53. say("You touched face number " + (string) face);
  54. llSetColor(<0.0,1.0,0.0>,face);
  55. llSleep(5.0);
  56. llSetColor(<1.0,1.0,1.0>,face);
  57. }
  58.  
  59. else if (face == 5)
  60. {
  61. say("You touched face number " + (string) face);
  62. llSetColor(<1.0,1.0,1.0>,face);
  63. llSleep(5.0);
  64. llSetColor(<1.0,1.0,1.0>,face);
  65. }
  66.  
  67.  
  68.  
  69. }
  70. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement