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; } -
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
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
-
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; }TheHiddenHour Thank you very much everyone for the next one I will specify, and although I already solved thank you very much TheHiddenHour
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login