Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

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.

Product Version: UE 4.17
more ▼

asked Aug 31 '17 at 09:03 AM in Using UE4

avatar image

6 2 2

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

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.

more ▼

answered Aug 31 '17 at 10:46 AM

avatar image

993 17 21 38

avatar image WiktorS Aug 31 '17 at 01:25 PM

I have no idea as well. I've downloaded a sample project from one ot the YT UE4 tutors with a persistent level and started playing with PlayerStart objects there, sometimes it worked, sometime it didn't. In the end I'm reverting to one of the previous project versions and I'll be skiping peristen levels due lack of time. And since after a day and a half of experimentings I couldn't find a cause to this problem, I won't be making an error feedback, so I think this topic can be closed or archived. Thanks for your time and suggestion.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question