Skip to content
  • 0 Unread 0
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
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 836 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
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
        • Xerxesundefined Xerxes

          You count them.

          luigistyleundefined Offline
          luigistyleundefined Offline
          luigistyle
          Plutonium Staff
          wrote 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
            • luigistyleundefined luigistyle

              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 Offline
              Xerxesundefined Offline
              Xerxes
              Plutonium Staff
              wrote 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
              • Xerxesundefined Xerxes

                You count them.

                alejandrodarzundefined Offline
                alejandrodarzundefined Offline
                alejandrodarz
                wrote on last edited by
                #7

                Xerxes jjjj

                1 Reply Last reply
                0
                • TheHiddenHourundefined TheHiddenHour

                  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 Offline
                  alejandrodarzundefined Offline
                  alejandrodarz
                  wrote 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

                  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
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

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