Guest User

Untitled

a guest
Oct 22nd, 2018
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. integer switch;// defaults to FALSE;
  2.  
  3. default {
  4.     touch_start(integer num_detected) {
  5.         switch = !switch;//toggle between TRUE and FALSE
  6.  
  7.         float alpha;// defaults to 0.0; i.e. clear
  8.  
  9.         if (switch)
  10.             alpha = 1.0;
  11.  
  12.         llSetLinkAlpha(LINK_SET, alpha, ALL_SIDES);
  13.     }
  14. }
Add Comment
Please, Sign In to add comment