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

Plutonium

  1. Home
  2. BO2 Modding Support & Discussion
  3. [Support] Gsc Support #2

[Support] Gsc Support #2

Scheduled Pinned Locked Moved BO2 Modding Support & Discussion
6 Posts 6 Posters 606 Views 2 Watching
  • 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.
  • n4thundefined Offline
    n4thundefined Offline
    n4th
    wrote on last edited by Mr. Android
    #1

    How can I spawn a bot automatically every game without me doing anything? Like the bot spawns in by itself every game? Is there like a function line command?

    n4thundefined 1 Reply Last reply
    0
    • Sassundefined Offline
      Sassundefined Offline
      Sass
      Plutonium Staff
      wrote on last edited by Sass
      #2

      If you want to spawn one bot, the GSC for it is the following :

      self thread maps\mp\bots\_bot::spawn_bot(team);
      // team is either "axis", "allies" or "autoassign" (WITH QUOTES)
      

      If you need to spawn multiple bots, making a function that loops this line would be the way to go, like this :

      self thread spawnBots(NumberOfBots, NameOfTeam); 
      // example : spawnBots(3, "autoassign");
      
      spawnBots(count, team)
      {
          for(i = 0; i < count; i++)
          {
              self thread maps\mp\bots\_bot::spawn_bot(team); 
              wait .5;
          }
      }
      
      Ducxyundefined Duui YTundefined 2 Replies Last reply
      0
      • Sassundefined Sass

        If you want to spawn one bot, the GSC for it is the following :

        self thread maps\mp\bots\_bot::spawn_bot(team);
        // team is either "axis", "allies" or "autoassign" (WITH QUOTES)
        

        If you need to spawn multiple bots, making a function that loops this line would be the way to go, like this :

        self thread spawnBots(NumberOfBots, NameOfTeam); 
        // example : spawnBots(3, "autoassign");
        
        spawnBots(count, team)
        {
            for(i = 0; i < count; i++)
            {
                self thread maps\mp\bots\_bot::spawn_bot(team); 
                wait .5;
            }
        }
        
        Ducxyundefined Offline
        Ducxyundefined Offline
        Ducxy
        wrote on last edited by
        #3

        Sass n4th yea just use a spawnbots script and call it on Init i believe. My friend skid made a script where the bots will be removed from the game one by one when more and more people join

        A Former User? 1 Reply Last reply
        0
        • Ducxyundefined Ducxy

          Sass n4th yea just use a spawnbots script and call it on Init i believe. My friend skid made a script where the bots will be removed from the game one by one when more and more people join

          A Former User? Offline
          A Former User? Offline
          A Former User
          wrote on last edited by
          #4

          Ducxy I have done it by creating a player count variable and threading everything onplayerconnect. This way the bots join only when the first person joins and leave when subsequent people connect.

          1 Reply Last reply
          0
          • Sassundefined Sass

            If you want to spawn one bot, the GSC for it is the following :

            self thread maps\mp\bots\_bot::spawn_bot(team);
            // team is either "axis", "allies" or "autoassign" (WITH QUOTES)
            

            If you need to spawn multiple bots, making a function that loops this line would be the way to go, like this :

            self thread spawnBots(NumberOfBots, NameOfTeam); 
            // example : spawnBots(3, "autoassign");
            
            spawnBots(count, team)
            {
                for(i = 0; i < count; i++)
                {
                    self thread maps\mp\bots\_bot::spawn_bot(team); 
                    wait .5;
                }
            }
            
            Duui YTundefined Offline
            Duui YTundefined Offline
            Duui YT
            wrote on last edited by
            #5

            Sass where do i put this

            self thread spawnBots(NumberOfBots, NameOfTeam);
            // example : spawnBots(3, "autoassign");

            spawnBots(count, team)
            {
            for(i = 0; i < count; i++)
            {
            self thread maps\mp\bots_bot::spawn_bot(team);
            wait .5;
            }
            }

            Codgogo_undefined 1 Reply Last reply
            0
            • Duui YTundefined Duui YT

              Sass where do i put this

              self thread spawnBots(NumberOfBots, NameOfTeam);
              // example : spawnBots(3, "autoassign");

              spawnBots(count, team)
              {
              for(i = 0; i < count; i++)
              {
              self thread maps\mp\bots_bot::spawn_bot(team);
              wait .5;
              }
              }

              Codgogo_undefined Offline
              Codgogo_undefined Offline
              Codgogo_
              wrote on last edited by
              #6

              Duui YT maps \ mp \ bots

              1 Reply Last reply
              0
              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
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Donate