How do I get an array of players on a team?

TeamCollection := GetPlaySpace().GetTeamCollection()
TeamCollection.GetAgents(Team)