Direction button.lsl 413 B

1234567891011121314151617181920212223
  1. //:AUTHOR: Ferd Frederix
  2. //:DESCRIPTION:
  3. // Button Script for console
  4. //:CODE:
  5. string E = "<1,0,0>";
  6. string NE = "<1,1,>";
  7. string N = "<0,1,0>";
  8. string NW = "<-1,1,0>";
  9. string W = "<-1,0,0>";
  10. string SW = "<-1,-1,0>";
  11. string S = "<0,-1,0>";
  12. string WE = "<1,-1,0>";
  13. // chose a direction for one of 8 buttons.
  14. default
  15. {
  16. touch_start(integer total_number)
  17. {
  18. llMessageLinked(LINK_SET,0,N,"");
  19. }
  20. }