Delays Continue Counting When Game Is Paused

Hello. I set the skill cooldowns in my game with delays. When I open in game menu when a skill is on cooldown, delay continue to count. I set the game paused in menu. How can I pause the counting?

Thanks.

Can anyone help?

Yes that makes sense but I used simple ‘delay’ node. This will cost lots of work, ha? :slight_smile:

how do you make the delay? if you just take the deltaseconds at the start of the cooldown how about you then add every new second one to the cooldown with a boolean-check (something along “IsInMenu”) so it only counts one up, when you’re not in the menu. If you do it someway else, maybe make a screenshot? that would help :slight_smile:

well, with delay I don’t think it will work. The easiest way comming to my mind would probably be on event tick take the delta-seconds and add them to the cooldown(or subtract them) but with the mentionend boolean gate before - I’m not sure if its the most efficient way, but I guess it should at least work ^^
Edit: just tried a simplified version of this in a third-person-template and yeah, it works ^^