❗ Getting players in team

Posts 1–3 of 3 · Page 1 of 1
❗ Getting players in team
Hello,

Is there a function that exists which gets the names of players in a certain team? There's the level.players[i].name which gets all players in a game, but I do not know how to filter it by team name.

Thank you very much.
foreach(player in level.players)
if(self.pers["team"] == "your team name (axis or allies)")
{
doStuff();
...
Actually, I meant something like level.players[i].name but for the team, maybe like level.allies[i].name or something. Thanks though, I am actually making a menu which seperates the allies and axis.
Posts 1–3 of 3 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us