World Travel
How to portal between worlds
Last updated
Was this helpful?
How to portal between worlds
Last updated
Was this helpful?
World travel is only available between worlds on the same Base M2 Platform version.
World Travel will not work for users who only have guest access as they only have access to a single world.
World Travel is the mechanism by which clients (i.e. players or bots) move between mods. The typical use case for world travel is when we want to have two separate maps which persist at the same time and where players can connect to either map and travel between them.
Without going into too much technical depth, there are two modes of world travel - manual and automatic. Automatic world travel is usually triggered programmatically as part of client setup, whereas manual involves the user running into or interacting with an object which causes them to world travel.
Since automatic world travel is manual minus some steps, the below is a high-level example of manual world travel:
Step 1: We set up two or more servers.
Step 2: We start a client, and they connect to Server A.
Step 3: The client interacts with an object, and an Http request is sent which returns the available worlds.
Step 4: The client selects a world to travel to, disconnects from Server A and connects to Server B.
You can place a BP_M2Example_WorldTravelGate
in your world (or something deriving from the underlying BP class). In-game, the UI will be populated with an option for each UE server that you have permissions to travel to.
Our recommended flow for testing world travel in editor is detailed here: World Travel in the editor