Added a control bool for the auto travel setup

Added a control bool for the auto travel setup, and exposed two new variables to the Update Session node
This commit is contained in:
Joshua
2025-08-07 15:01:34 -04:00
parent b7b684fae9
commit 682ac3f676
4 changed files with 26 additions and 3 deletions

View File

@@ -47,6 +47,13 @@ void UAdvancedFriendsGameInstance::OnSessionUserInviteAccepted(const bool bWasSu
void UAdvancedFriendsGameInstance::OnJoinSessionComplete(FName SessionName, EOnJoinSessionCompleteResult::Type Result)
{
// If we don't want to auto travel to the session instance then exit out
if (!bAutoTravelOnAcceptedUserInviteReceived)
{
return;
}
IOnlineSessionPtr SessionInterface = Online::GetSessionInterface(GetWorld());
if (SessionInterface.IsValid())
{