Is there a way to spawn an object *before* BeginPlay runs?

I have a bunch of NPCs who all need references to my world manager class, and I thought it would be clever to run SpawnActorFromClass on my GameMode BP to spawn the world manager, so it automatically gets added to every level and I never have to think about curating it again. The problem is that apparently my NPC’s BeginPlay function, held in their character controller’s beginplay in C++, is running before the gamemode’s beginplay in blueprint, as they consistently search for the world logic before it gets spawned into the world.

To that end, is there a node other than BeginPlay I should be running my spawner from, to ensure that gamemode always creates the logic classes before anything else has a chance to need them in-level?

I would have thought the simplest thing would be for a “DoOnce” with a delay of 0.2 on BeginPlay for spawning them.

Hmmkay, thanks for the suggestion! I’ll try that :slight_smile: