How can I find out the number of players on a team?
-
How can I find out the number of players on a team?
-
You count them.
-
press the "tab" button on your key board or which ever key is assigned to see players and their kills and count them like everyone else does
-
Xerxes DemonicRuler He didn't specify in the post, but I assume by the category that he made the post in that he wants to know how to count the amount of players on a team through GSC
-
There's probably a built in function to do it but you can write a simple one like this.
getTeamCount(team) { count = 0; foreach(player in level.players) { if(player.team == team) { count++; } } return count; }
-
luigistyle said in How can I find out the number of players on a team?:
Xerxes DemonicRuler He didn't specify in the post, but I assume by the category that he made the post in that he wants to know how to count the amount of players on a team through GSC
I know he talked about getting those counts in gsc, where you still have to count them. Just as TheHiddenHour has showed.
-
Xerxes jjjj
-
TheHiddenHour Thank you very much everyone for the next one I will specify, and although I already solved thank you very much TheHiddenHour