Giving each player a unique ID for the session

Okay cool, I’ve done that, however I get an Error for GetAgents.
I’ve Also tried GetPlayers but I’m assuming that won’t work because it’s not part of fort_team_collection .
Also do I need to cast agents as players if I don’t intend on putting NPCs on the map?
thank you for your help, I’m sorry if these are stupid questions :slight_smile:

        TeamCollection := GetPlayspace().GetTeamCollection()
        TeamOne:= if (TeamCollection.GetTeams()[0]):
        TeamTwo := if (TeamCollection.GetTeams()[1]):
        TeamOnePlayers := TeamOne.GetAgents()
        TeamTwoPlayers := TeamTwo.GetAgents()

I’ve also tried this:
uefn code fail 2