How to make the game automatically resume after a few seconds when paused?

Hello. I want to save the game when the player presses ESC to exit, then pause the game to give feedback that the exit is in progress. However, the subsequent delay function doesn’t execute, causing the game to freeze and not exit. I don’t want the player to press ESC again, but instead want the game to automatically resume. Is there any way to do this?

When game is paused, delays don’t work, because they too are paused. As a workaround, you can create a custom actor/object and set it tickable when paused, and spawn it when you need to start the delay. But the delay itself you should make manually, powered by the Tick function.

Thanks