Advertisement
Guest User

Untitled

a guest
Aug 18th, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. SpinOutHud(t)
  2. {
  3. SpunOut = self createFontString( "default", 2.5 );
  4. cosx = 0;
  5. cosy = 0;
  6. radius = 150;
  7. z = 0;
  8.  
  9.  
  10.  
  11. SpunOut setText(t);
  12.  
  13.  
  14.  
  15. // Since the text never changes you only have to set it once.
  16. // Also the waits can be combined into a wait .3
  17. for ( ;; )
  18. { xx = cosx + sin(z)*radius;
  19. yy = cosy + cos(z)*radius;
  20. SpunOut setPoint( "CENTER", "CENTER", xx, yy );
  21. SpunOut ChangeFontScaleOverTime( 0.3 );
  22. SpunOut.fontScale = 2.7;
  23. wait 0.3;
  24. SpunOut ChangeFontScaleOverTime( 0.3 );
  25. SpunOut.fontScale = 2.5;
  26. wait 0.3;
  27. z+=10;
  28. }
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement