Before we begin, keep in mind that this will be a somewhat long tutorial, so before we begin let me explain what we’re even making.
This will be the end result:
Important to know:
In UE4 it is recommended to use level streaming and/or world composition to accomplish such things, but many people seem to dislike that approach due to things getting too complex after a while. If you are interested in that way you can watch THIS and THIS stream from Epic Games.
With all that said, let’s begin. Create a new FPS Game Starter Kit project and open it.
2. Create a new interactive actor (tutorial) <- or just duplicate the ATM vending machine and rename it
NOTE: the promoted variables need to be set to editable and expose on spawn.
3. Create a minimum of 2 new maps, one of which MUST be called “main” (uses string equal to compare the name of the current map, to check if it’s called main)
main, red and blue are 3 new maps that I created for the video example in the beginning
HOW TO USE
10. On your main map, add a player start (can be wherever your game starts) and the BP_Travel blueprint (interactive actor)
As you can see, on the right side, because the variables are exposed and editable on spawn, we can specify what map it should load when the player interacts with it, in this example it’s gonna load the map called “blue” (without quotes).
11. On the blue map, also place the interactive actor and a player start, but this time put the player start in front of it, because the player entered a bunker (or something), so this is the door from where the player will be spawned.
And again we specify what map it should take us to, obviously “main” (without quotes) to return back to the main world map.