Problem with splitscreen on runtime

I have a splitscreen gamemode in my game and when it loads into the level it’s supposed to create 4 players which will then divide the screen into 4 sections normally.

The problem is when I load into the level sometimes the players won’t spawn, upon reloading into the level it will then sometimes spawn 3, 2 and then finally 4 characters with some not being possessed.

It works perfectly in the editor but when I compile and run the game on its own it does this.

I have the function to spawn the characters on an event beginplay maybe that could be the issue?

here is the blueprint.

Spawning Character Blueprint

Any help is appreciated thanks!

I added a delay to the event beginplay and now none of them are spawning so I’m not really sure whats the problem at this point.

I solved it by removing all four branches since it always returned false outside the editor, not sure why.