Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function giveHealth( num )
- {
- printl("health pack picked up");
- local health = num;
- if ((activator.GetHealth()+health) < 100)
- {
- activator.SetHealth(activator.GetHealth()+health);
- }
- else
- {
- activator.SetHealth(100);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment