Closed itsZeebo closed 3 years ago
If that issue only shows up in online play, and not in offline play, then it's likely the variable that stores those members doesn't get replicated. Your best bet would be to use server.GetPRIs()
and loop through those. You can use PriWrapper::GetTeamNum()
to get which team they're on. 0 is blue, 1 is orange.
Description
When trying to get members of a team using the
GetMembers()
function ofTeamWrapper
in an online game, there are 0 members in both teams.Example
Expected Result
Loop through the team players and be able to access their data.
Actual Result
We are able to get 2 teams from the
server.GetTeams()
function, butteamMembers.Count()
returns 0 and there aren't any members to loop through. AlsoteamMembers.Get(0)
returns null.