foreach(player in level.players)
if(self.pers["team"] == "your team name (axis or allies)")
{
doStuff();
...
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.