APartyBeaconHost::GetTeamForCurrentPlayer

Finds the current team assignment of the given player net id.

Windows
MacOS
Linux

References

Module

OnlineSubsystemUtils

Header

/Engine/Plugins/Online/OnlineSubsystemUtils/Source/OnlineSubsystemUtils/Public/PartyBeaconHost.h

Include

#include "PartyBeaconHost.h"

Source

/Engine/Plugins/Online/OnlineSubsystemUtils/Source/OnlineSubsystemUtils/Private/PartyBeaconHost.cpp

Syntax

int32 GetTeamForCurrentPlayer
(
    const FUniqueNetId & PlayerId
) const

Remarks

Finds the current team assignment of the given player net id. Looks at the reservation entries to find the player.

Returns

index of team assignment for the given player, INDEX_NONE if not found

Parameters

Parameter

Description

PlayerId

net id of player to find

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss