Player Sessions Completed - working project at this point
This commit is contained in:
@@ -167,6 +167,15 @@ void UPortalManager::FindPlayerSession_Response(FHttpRequestPtr Request, FHttpRe
|
||||
|
||||
const FString IPAndPort = PlayerSession.IpAddress + TEXT(":") + FString::FromInt(PlayerSession.Port);
|
||||
const FName Address(*IPAndPort);
|
||||
|
||||
APlayerController* LocalPlayerController = GEngine->GetFirstLocalPlayerController(GetWorld());
|
||||
if (IsValid(LocalPlayerController))
|
||||
{
|
||||
FInputModeGameOnly InputModeData;
|
||||
LocalPlayerController->SetInputMode(InputModeData);
|
||||
LocalPlayerController->SetShowMouseCursor(false);
|
||||
}
|
||||
|
||||
UGameplayStatics::OpenLevel(this, Address);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user