So I’m using the FPS template for unreal engine. I already set up a HUD and a player script for having the player sprint and then having the stamina bar regenerate over time. Now I’m trying to make a stamina regeneration zone, where the bar is regenerating at a slower rate than normal, but when I use it, the normal regeneration rules are still happening whether I’m in or outside the zone. So I have two regeneration rules happening at once Could someone help me figure out how to stop the normal regeneration so I can only use the regeneration from the regenzone actor? Thank you
Ok, several things.
They way you are doing the regeneration on the zone only work each time you enter the zone, no constantly. because you are using the “on actor begin overlap” node.
And in the character blueprint, you are using the tick to regenerate the stamina. Thas not a good idea.
In my proyect i use “Set timer by function name” to regenerate stats. That way you can pause and unpause the timer every time you need it. and you can set up the regenaration by time in seconds, so the regeneration works in all the computer at the same time, not depending of the frame rate.
Let me know if you need some screenshots to show you how it works.