Hi,
I’m trying to load a specific level from the game instance when the game starts, but only in certain circumstances. I currently do so by calling OpenLevel (after checking for the circumstances) in the GameInstance event Init, which works in the editor.
However, in a packaged project, the OpenLevel still gets called but instead the game still loads the Game Default Map.
I’m guessing this happens as the OpenLevel call happens without being able to open a level yet cause of the execution order. It’s crucial though that the initial code runs from the game instance init.
But now I’m left wondering how I can force the correct map to open.
My current solution is to use a 1 frame delay before calling OpenLevel, but I’m not sure how consistent this is as I’ve had trouble with it in the past.
Is there some sort of callback when the game is ready to load a level? I’m willing to use C++ if needed.
Thanks in advance