World Composition: Event when a level is loaded (C++)
I'm trying to build some kind of data driven game (with NPC's and such). I'd like to spawn NPC's only when their level is loaded. I'm using world composition (needs to be some kind of open world game). But i'm not seeing any event noticing me that "hey, this level has loaded now!" and "this level has unloaded!" Does this kind of thing exists? Or that implies that i'm doing the loading stuff myself? (I mean, without adding code to every single level to trigger that..) Thanks !
Hey, you could simply hook on your GameMode code "BeginPlay" it's called when the world is initialized
else if it's with level streaming, you can use these events ( can be hooked in beginPlay Aswell i guess ) :
answered May 01 '19 at 12:53 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here