Wazanator

Untitled

Oct 10th, 2015
364
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. function giveHealth( num )
  2. {
  3. printl("health pack picked up");
  4. local health = num;
  5. if ((activator.GetHealth()+health) < 100)
  6. {
  7.  
  8. activator.SetHealth(activator.GetHealth()+health);
  9. }
  10. else
  11. {
  12. activator.SetHealth(100);
  13. }
  14.  
  15. }
Advertisement
Add Comment
Please, Sign In to add comment