Persistent levels, player not spawning at PlayerStart
I've started converting my project to support persistent levels and I encountered problems, where after loading a level with LoadStreamLevel BP, the player isn't spawned in a PlayerStart.
Before I switched to persistent levels, each of my both gameplay maps had its own PlayerStart object and spawned my PlayerCharacter without any problem. Now, after putting everything into one persistent level and loading levels with LoadStreamLevel BP, my PlayerCharacter is spawned in the void, outside of my level and I have no idea what causes this.
I used to transit the PlayerStart object from my gameplay level to MainMenu through Level->Move Selected Actors to Level editor option and it worked once or twice, can't reproduce that anymore and can't do it for my second gameplay level. Toggling ShouldBlockOnLoad in LoadStreamLevel doesn't help. I'm running out of ideas on what to do.
I have my own GameMode, PawnClass, ControllerClass and PlayerState set up both in WorldSettings and in ProjectSettings. My setup is PersistentLevel -> MainMenu -> LoadingScreen -> ClosedLevel or OpenLevel.
Any help or suggestion will be much appreciated.
asked Aug 31 '17 at 09:03 AM in Using UE4
I don't know why that isn't working but you could write your own system for it. Since you're loading the level you have access to the OnComplete. Once it's complete you could get all player starts, and teleport or spawn your actor yourself to the transform of the player start. In the gameMode you can override the player start based code if needs be, but you probably want to control spawning after the level is loaded else you will just fall through the floor.
answered Aug 31 '17 at 10:46 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here