Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/APlayerController
Description
Travel to a different map or IP address. Calls the PreClientTravel event before doing anything. NOTE: This is implemented as a locally executed wrapper for ClientTravelInternal, to avoid API compatability breakage
| Name | ClientTravel |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/GameFramework/PlayerController.h |
| Include Path | #include "GameFramework/PlayerController.h" |
UFUNCTION ()
void ClientTravel
(
const FString & URL,
enum ETravelType TravelType,
bool bSeamless,
FGuid MapPackageGuid
)
Parameters
| Name | Remarks |
|---|---|
| URL | A string containing the mapname (or IP address) to travel to, along with option key/value pairs |
| TravelType | specifies whether the client should append URL options used in previous travels; if true is specified for the bSeamlesss parameter, this value must be TRAVEL_Relative. |
| bSeamless | Indicates whether to use seamless travel (requires TravelType of TRAVEL_Relative) |
| MapPackageGuid | The GUID of the map package to travel to - this is used to find the file when it has been autodownloaded, so it is only needed for clients |