Set player health Created 6 years ago2017-10-30 13:56:05 UTC by User#6970 User#6970

Created 6 years ago2017-10-30 13:56:05 UTC by User#6970 User#6970

Posted 6 years ago2017-10-30 13:56:05 UTC Post #337866
Is there a way to set the player health in vanilla HL?
Posted 6 years ago2017-10-30 14:00:26 UTC Post #337868
There's no entity that does this directly, but you can use trigger_hurt and doors to hurt/heal them. You can damage them just enough to get health down to what you want, and use negative damage to heal them.
Posted 6 years ago2017-10-30 14:02:54 UTC Post #337869
I get it. So I can turn on a trigger_hurt for a second to give the player the maximum amount of health. Then trigger another trigger_hurt to remove what I need to reach a specific value. Thanks!!!

Actually, is trigger_hurt toggleable?

Worst case, in my case, I can toggle a trigger_teleport to a location where the second trigger_hurt will be located.

Please don't double/triple post. Use the edit button. - Urby :)
Posted 6 years ago2017-10-30 14:47:36 UTC Post #337872
Yes, trigger_hurt can be toggled.

EDIT: you can also use game_player_hurt: http://twhl.info/wiki.php?id=31
Posted 6 years ago2017-10-30 15:48:52 UTC Post #337873
Thanks!
Posted 6 years ago2017-10-30 15:59:42 UTC Post #337874
Cleaned up your second, third and fourth posts. ;)
monster_urby monster_urbyGoldsourcerer
You must be logged in to post a response.