Advertisement
Guest User

Untitled

a guest
Jul 28th, 2017
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.17 KB | None | 0 0
  1. Fade_It(entity foo) =
  2. {
  3.     if (foo.alpha < 0.1)
  4.     {
  5.     remove(foo);
  6.     return;
  7.     }
  8.    
  9.     foo.alpha = foo.alpha - 0.1;
  10.     foo.think = Fade_It;
  11.     foo.nextthink = time + 0.5;
  12. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement