You can create a system to repeatedly call a function to increase your health.
-
Create a function, I’d call it StartRegen;
-
Create a boolean bIsRegenerating?;
-
Inside your StartRegen function, make a branch to check if you bIsRegenerating is true. After that, increase your health by ‘1’. And after that, use the node “Set Timer by Function Name”. The Function Name will be StartRegen and the time you decide.
Following this logic, you can get close to an analog health regeneration (using int) depending on the time you set inside Set Timer by Function Name. It’s a good way to control how much health you want the player to regen in a period of time. It has, too, condition to stop regenerating since you set the bIsRegenerating to false, it will not execute the loop again. You can add that it stops regenerating when the health is set to maximum value and it interrupts the call loop, too…