Navigation
API > API/Plugins > API/Plugins/OnlineSubsystemUtils > API/Plugins/OnlineSubsystemUtils/APartyBeaconHost
Description
Finds the current team assignment of the given player net id. Looks at the reservation entries to find the player.
| Name | GetTeamForCurrentPlayer |
| Type | function |
| Header File | /Engine/Plugins/Online/OnlineSubsystemUtils/Source/OnlineSubsystemUtils/Public/PartyBeaconHost.h |
| Include Path | #include "PartyBeaconHost.h" |
| Source | /Engine/Plugins/Online/OnlineSubsystemUtils/Source/OnlineSubsystemUtils/Private/PartyBeaconHost.cpp |
int32 GetTeamForCurrentPlayer
(
const FUniqueNetId & PlayerId
) const
index of team assignment for the given player, INDEX_NONE if not found
Parameters
| Name | Remarks |
|---|---|
| PlayerId | net id of player to find |