Stamina regain.

I actually have another solution that could work here as well … with a delay. I use it in Kaboom Arena to replenish more bombs and dynamite at a set cycle. This doesn’t use event tick at all and works independently of any timer event or other timing trick.

This also works in Network play without an issue and I have not encountered any issues with my testing.

This is on my Player Character blueprint and happens after I spawn my bomb on all clients.

This is the portion that is wired off the spawn bomb call and it basically has a delay that is wired to a set value, for bombs it is 5 seconds. I pass in the current bomb count as an input to the refresh bombs call and it returns a true/false on whether we should continuing refresh. Typically you won’t refresh when you hit the max bomb count … in this example it is 5.

This is the meat and potatoes of the refresh bombs call, it takes the current bomb count, makes sure the player is not dead and then does a whole bunch of checks to make sure we should continue refreshing bombs or not.

Please feel free to contact me if you need any further information. I am not sure whether this will work for anyone else’ particular project, but I plan on using it in Re-Spawn as well when I get back on to that project.