SHARE
TWEET

Untitled

a guest Jan 27th, 2019 76 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. integer k;
  2. float flip = 0.25;
  3. float flip1= 0.25;
  4. list params;
  5. rotation rot;
  6. integer link = 0;
  7. default{    
  8.     state_entry()    
  9.     {
  10.         params = llGetLinkPrimitiveParams(link, [PRIM_ROTATION]);    
  11.         rot = llList2Rot(params,0);          
  12.     }    
  13.     touch_start(integer total_number)    
  14.     {  
  15.         if( k = !k)
  16.             llSetTimerEvent(0.1);      
  17.         else        
  18.             llSetTimerEvent(0.0);          
  19.     }  
  20.     timer()    
  21.     {
  22.         integer i = 4;
  23.         while(i-->0){
  24.             float flipt = (llFrand(flip)-llFrand(flip));
  25.             float flip1t= (llFrand(flip1)-llFrand(flip1));
  26.             llSetLinkPrimitiveParamsFast(LINK_THIS,[PRIM_ROTATION, rot+llEuler2Rot(<flipt,flip1t, 0.0>)]);
  27.         }
  28.     }
  29. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top