Delete countdown After Death

So basically I have this code that sets a timer and it’s in my character blueprint and I want that when the countdown falls to 0 you’re teleported to the main menu level but when I’m in the main menu I don’t want the countdown to be active because it teleports back again to the main menu (like i’m selecting a skin and then boom back to play, settings, exit) how can I do ?

If the main menu is a level, which it seems to be, you can simply have a boolean check to check if you are in a specific level. If the level is main menu, stop, pause or don’t run the timer at all. You can then call the function by an event later on when needed.

1 Like

ahah thanks I forgot I had posted this and now my game doesn’t uses the
countdown anymore but I was thinking of using it again so thanks for your help

1 Like