Hello, I have a custom event (a countdown before the game resumes), but since the game is paused, the custom event also starts paused.
Is there a way I can exclude it from being affected by the “set game paused” function?
Hello, I have a custom event (a countdown before the game resumes), but since the game is paused, the custom event also starts paused.
Is there a way I can exclude it from being affected by the “set game paused” function?
Set the actor class which has the event handler to Tick while Paused.
Then add condition branches that check the output of the Is Game Paused function (I think that’s what it’s called). Or maybe it’s just the boolean get Game Is Paused.
So then that Actor will continue Ticking while the game is paused, but it won’t do any of the things you check against with that boolean branch, but will do anything you don’t check against.
Also the class that sends the event/calls the function needs to not be paused when it would do so.
So if it’s a UMG widget, you need to make sure the playercontroller whose viewport has the widget can tick while paused too.
Maybe 6 years later, but i’ve got something.
In my game I have a custom event with various delays. It’s supposed to show you a series of events after u activate a lever, and the game should be paused so you don’t get attacked by any enemy while the sequence is playing.
So what i did is to start blueprint with tick disabled
Make it tick while paused
Then, i unlink the custom event and the sequence i want to play, and instead the custom event now sets the Actor’s tick enabled, so the event tick starts running.
The event tick starts with a do once, so it doesn’t do random stuff while delays are on.
Event tick plays the sequence fine while paused, and you must set Actor’s tick disabled at the end of the sequence and unpause the game. You can reset the Do Once node after that in case u need to use it again.
(My sequence is collapsed since it’s not important here and it’s too big to fit on the image)
OP shouldn’t be interested on this anymore, but I suppose this could help anyone like me who ends up on this post looking for a solution to this problem ^^