How do you change level?
I've been having some trouble. I know the basic way of changing the level but what if I want there to be more then one entrance like a cave or a huge open world and want the player to spawn outside of the house or cave's entrance? I tried the teleport command in the Blueprint but it just keeps taking me to location '0.0.0' anyways. Is there a way to make it to where the player will spawn at a certain actor or just a certain location on that level?
asked Sep 09 '15 at 05:45 PM in Using UE4
Use the player start actor from the basic components list to the left of the viewport where you want your player to spawn.
You can create as many as you want and create an array of them and then do random or specified or just one.
Hope this helps Don't forget to accept an answer that best clears your question up or answers it so when the community finds your question in the future via search/google they know exactly what you did to fix it/get it going.
answered Sep 09 '15 at 05:58 PM
Let's say you have one "entrance door" and one "cave entrance" that both go between the same two levels, and you want travel back and forth to go to the "right" place on the other side, then there are a few things to do: 1) You need to create player state markers at each of the entrances. This is what Nsomnia suggests. Name each of these start points after the location -- "door" or "cave" for example. 2) You need to create a trigger volume for loading the other level at each place. Name these triggers after the location as well using the corresponding names ("door" and "cave" here.) 3) You need to "somehow" forward the state of where the player is supposed to show up. The easiest way is to stuff the "name of the spawn point" into a custom GameState when you hit the trigger. When a level loads, it looks up the name of the spawn point in this variable in the GameState, and spawns the player there.
answered Sep 09 '15 at 08:29 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here