(adsbygoogle = window.adsbygoogle || []).push({});
Hey - how can I get the amount of players on a team?
I have tried level.teamCount["axis"] but Im not convinced it works...I found it somewhere. I put a iprintln("Success") to make sure it works, then I tried iprintln(self.pers["team"]) which returned the team name.
But then I tried iprintln(level.teamCount["axis"]) and iprintln(level.teamCount["allies"]) and it didn't return anything.
AllFrozenAxis()
{
if(level.AxisFrozen == level.teamCount["axis"])
return true;
else
return false;
}
I am trying to get axisfrozen (which increases/decreases with friendly/enemy attacks) to match the team player count so that the game ends when all the team is frozen