My DoOnce node is not working

Goodday,

I have a little Main Screen that should only start up on Beginplay, now the first thing I noticed is that the Screen started to pop up after the player died even though it’s set to only start up on Beginplay. I put a DoOnce node infront of it and it litterly still starts up the Main Screen on death.

DoOnce definitely works. It must be the way you’ve coded it.

If you have put the DoOnce in a widget, but you’re creating a new widget, then of course, it will run again…

I have a feeling that’s resetting the DoOnce node when the Player dies but I don’t know how to stop it.

But nothing is calling this chain?..

1 Like

Oh yeah sorry, I disabled it so I don’t get the screen every time I’m launching from the editor. It comes from a “Event BeginPlay”

Begin play in what?

1 Like

If you are doing this in the playercharacter when it gets respawned, your suspicion might be correct. What about doing this in the player controller for example, which ‘survives’ the players character death…

1 Like

I litterly just thought of that and changed it so now it works.

Thanks tho