Download

How do I make my healing loop? New to blueprints.

Hi,

I’ve made a really simple blueprint which adds hp when the player overlaps a “healing area”. This works, but it only adds one point, and then the player must leave the area and overlap again. I want to make it so that health is added every second that the player is overlapping, and then stop when they are no longer overlapping. How can I do this?

Here’s my event Graph:

Thanks!

I would suggest using a Timer. You can use it to run specific logic (like increasing the health) at periodic intervals.

https://youtube.com/watch?v=qc5WpNq7RFg

Every time you encounter a begin overlap, you can set a new timer (if one is not running already) of interval 1 second, tasked with running your health increment logic. Similarly on end overlap, you can clear the timer & it will stop the execution.