How to achieve always fill health without exceeding the maximum determined?

it may be a basic question but here it goes How do I achieve the healing system of classic shooting games? where healing always completes life without exceeding its maximum that was determined and not add more
I have seen too many very basic examples of the system but nothing goes further about how health works
I am using an actor that works like medkit but I want to use more complex damages and different number but for that I need to complete the system of healing is more efficient. anyone who reads this thank you very much for the patience and take the time to read

Use clamp when you’re adding value to your health value. So it wont go over the max you’ve set.

1 Like

It really works well!