Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Donate
Collapse

Plutonium

  1. Home
  2. BO2 Modding Support & Discussion
  3. How can I find out the number of players on a team?

How can I find out the number of players on a team?

Scheduled Pinned Locked Moved BO2 Modding Support & Discussion
8 Posts 5 Posters 134 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • alejandrodarzundefined Offline
    alejandrodarzundefined Offline
    alejandrodarz
    wrote on last edited by
    #1

    How can I find out the number of players on a team?

    1 Reply Last reply
    0
    • Xerxesundefined Offline
      Xerxesundefined Offline
      Xerxes Plutonium Staff
      wrote on last edited by
      #2

      You count them.

      luigistyleundefined alejandrodarzundefined 2 Replies Last reply
      4
      • DemonicRulerundefined Offline
        DemonicRulerundefined Offline
        DemonicRuler
        wrote on last edited by
        #3

        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

        1 Reply Last reply
        0
        • luigistyleundefined Offline
          luigistyleundefined Offline
          luigistyle Plutonium Staff
          replied to Xerxes on last edited by
          #4

          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

          Xerxesundefined 1 Reply Last reply
          0
          • TheHiddenHourundefined Offline
            TheHiddenHourundefined Offline
            TheHiddenHour Contributor
            wrote on last edited by
            #5

            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;
            }
            
            alejandrodarzundefined 1 Reply Last reply
            3
            • Xerxesundefined Offline
              Xerxesundefined Offline
              Xerxes Plutonium Staff
              replied to luigistyle on last edited by
              #6

              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.

              1 Reply Last reply
              0
              • alejandrodarzundefined Offline
                alejandrodarzundefined Offline
                alejandrodarz
                replied to Xerxes on last edited by
                #7

                Xerxes jjjj

                1 Reply Last reply
                0
                • alejandrodarzundefined Offline
                  alejandrodarzundefined Offline
                  alejandrodarz
                  replied to TheHiddenHour on last edited by
                  #8

                  TheHiddenHour Thank you very much everyone for the next one I will specify, and although I already solved thank you very much TheHiddenHour

                  1 Reply Last reply
                  0

                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Recent
                  • Tags
                  • Popular
                  • Users
                  • Groups
                  • Donate