APartyBeaconHost::GetPlayersOnTeam

Get all the known players on a given team

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 GetPlayersOnTeam
(
    int32 TeamIndex,
    TArray< FUniqueNetIdRepl > & TeamMembers
) const

Remarks

Get all the known players on a given team

Returns

number of players on team, 0 if invalid

Parameters

Parameter

Description

TeamIndex

valid team index to query

TeamMembers

[out] array of unique ids found to be on the given team

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