Download

How to regenerate life after some time without taking damage.

Well, I used a system of life and armor, which when I enter a “Box Collision” I take damage … I was able to create another system that causes that if I leave this “Box Collision” for 5 seconds, only life regenerates slowly … But how do I always REGENERATE life when I do not take damage? For example in the future I will add projectiles and weapons in my game. I will not copy the whole system for every weapon or thing that takes life. Need help…
Here are some prints to help me.
Oh and if you have some suggestions to improve this system I would apreciate

PS: Both health and armor variable default value is set to 1.0