I'm trying to create an event handler, which affects stamina regeneration in-game, for example every 0.75s tick CurrentStamina variable should be increased by BasicStaminaRegen variable's value. I wanted to include it into a while loop to check at every tick if CurrentStamina == MaxStamina.
Concept C++ code:
...
float currentStamina = 25.0, maxStamina = 100.0, basicStaminaRegen = 5.0;
while(currentStamina != maxStamina) {
(something related to handle a timer)
...
currentStamina += basicStaminaRegen;
}
...
Question is, how can I accomplish it in UE blueprint editor?