face_picker.lsl 636 B

123456789101112131415161718192021222324252627
  1. // :SHOW:1
  2. // :CATEGORY:Light
  3. // :NAME:Rene Free Lighting System
  4. // :AUTHOR:Rene10957 Resident
  5. // :KEYWORDS: light,lamp,lighting light
  6. // :CREATED:2015-06-11 14:41:53
  7. // :EDITED:2016-03-30 20:29:28
  8. // :ID:1079
  9. // :NUM:1787
  10. // :REV:1
  11. // :WORLD:Second Life
  12. // :DESCRIPTION:
  13. // Face picker: identify face numbers by touch
  14. // :CODE:
  15. // :LICENSE: CC0 (Public Domain)
  16. // Face picker: identify face numbers by touch
  17. default
  18. {
  19. touch_start(integer total_number)
  20. {
  21. integer face = llDetectedTouchFace(0);
  22. if (face == TOUCH_INVALID_FACE) llOwnerSay("Viewer does not support touched faces");
  23. else llOwnerSay("Face " + (string)face);
  24. }
  25. }