Monitor player health (single player) Created 14 years ago2009-12-13 17:26:09 UTC by Soup Miner Soup Miner

Created 14 years ago2009-12-13 17:26:09 UTC by Soup Miner Soup Miner

Posted 14 years ago2009-12-13 17:26:09 UTC Post #276593
Is it possible to monitor the player's health if you're mapping for SP?

I'm trying to make a sort of health bar out of game_texts.
Posted 14 years ago2009-12-13 18:01:44 UTC Post #276594
Is there any way you can take info straight from the HUD?
Tetsu0 Tetsu0Positive Chaos
Posted 14 years ago2009-12-13 18:13:41 UTC Post #276595
I have no idea.
Posted 14 years ago2009-12-13 19:04:32 UTC Post #276596
You could code a health bar into the HUD, but for a single map, I dunno.
Notewell NotewellGIASFELFEBREHBER
Posted 14 years ago2009-12-18 09:06:58 UTC Post #276739
You can relay health and ammo values out of the player with a logic_playerproxy; you could have a setup that relays the value of the playerproxy for health to a game_text as the health changes or have a timer that checks current health every second or so. I don't know how you would display a value like this without having tons of game_texts for each health value, unless you can give the game_text an InValue which the playerproxy sends out - a simpler solution would be to have thresholds that choose a game_text from one of five states (20% health, 40% health, etc), perhaps.
RabidMonkey RabidMonkeymapmapmapfapmap
Posted 14 years ago2009-12-18 15:33:00 UTC Post #276740
The plan was just a small amount of bars to each represent a big percentage of health. So thanks.
You must be logged in to post a response.