My goal is to have the stamina drain every second the character is sprinting around. I also have added functionality to replenish the stamina as well. The first issue I am having is the stamina continues to drain when I stop sprinting as well as when the character stops moving. My second issue is that it only replenishes when it reaches 0 instead of replenishing anytime it is below my max stamina.
Stamina drain and regeneration posted by anonymous | blueprintUE | PasteBin For Unreal Engine this one hear? it should work if you use the same names
activates drain stamina BP on button sptin phus is smoter and does not jam with other speed reductions
I am still getting the same issue where it continues to drain until it reaches the bottom threshold. It still replenishes and reduces the same way as before.
I don’t know why it doesn’t work, I use a BP that contains all movement including sprint and stamina drain all in one from a tutorial
try this one Sprint + Stamina Logic posted by j3rr7 | blueprintUE | PasteBin For Unreal Engine
is have roecovey stamina and is not use a Tick event
leve all Tick event for DPS and frames try to avoid absolutely to use it save fps+pin!!! when the project is full many ticks are not good for the little that I understand they are used to give priority to other things and are used by servers to share location and actions between characters multiplayer handles ticks very bad the reality of multiplayer most ruthless
Yea I ended up finding a workaround that was a few more nodes, but it works fine now. I put it in a function and just added it to my pressed vs not pressed event. i try to keep my event graph with as less nodes as I can so i dont get confused tracking issues