Hi I’m pretty new to UE and I was wondering how I would go about creating an “Overheal” mechanic, similar to the Medic from TF2. Where you can temporarily increase your max health by a percentage of your max health e.g. 150% of max health.
Hey @ottto134! Welcome to the Forums!
So there can be a few ways you can go about this. Here is a suggestion:
You can check once more if the characters heath is max and then start adding the value of your healing up to your overheal amount for the character and trigger/reset a timer that when it runs out, sets the players heath back down to max if it is above their normal max amount.
Your new branch would extend from your false pin and simply reset the timer if the players health is already at overheal max.
Hey sorry for the late reply, got a little busy with classes, I ended up getting it working based on my interpretation of what you’ve suggested. While my health is slowly going down after being overhealed it continues to decrease after reaching the set default max health. I’ve attached screenshots of the blueprints I added to the heal functionality, as well as a new function I made to decrease health while overhealed. I will also attach a link in another reply to blueprintue.com if you wish to implement/easily edit the blueprints
And here is the link to my blueprintue.com
Profile of otttodev | Page 1 | blueprintUE | PasteBin For Unreal Engine
Hey @ottto134!
Your degeneration never stops because you never stop your looping timer. You should clear your timer once your health is =< your regular max health. Check out this non-Epic affiliated explanation on how to clear a timer:
I hope the above is the solution that fixes your overheal!
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.