Guest User

Untitled

a guest
Dec 23rd, 2017
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // Expand and Contract on Z
  2. // Start with a prime with slice begin = 0.5
  3. // Omei Qunhua
  4.  
  5. integer dir = 1;
  6. integer y = 50;
  7. default
  8. {
  9.     state_entry()
  10.     {
  11.         llSetTimerEvent(0.2);
  12.     }
  13.  
  14.     timer()
  15.     {
  16.         y += dir;
  17.         if (y >= 99)     dir = -1;
  18.         if (y <= 1)      dir = 1;
  19.         float fz = (float) y / 50.0;
  20.         llSetScale(<0.5, 0.5, fz>);
  21.     }
  22. }
Add Comment
Please, Sign In to add comment