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

Plutonium

  1. Home
  2. BO2 Modding Support & Discussion
  3. [Support] Need Help for a gsc bind

[Support] Need Help for a gsc bind

Scheduled Pinned Locked Moved BO2 Modding Support & Discussion
10 Posts 3 Posters 455 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.
  • telowsundefined Offline
    telowsundefined Offline
    telows
    wrote on last edited by Mr. Android
    #1

    I was wondering if anyone would be willing to help me with creating a bind that would drop a canswap. I would like to set the bind to crouch+left dpad. I am really new to this so Im kinda struggling...

    Ducxyundefined 1 Reply Last reply
    0
    • tedundefined Offline
      tedundefined Offline
      ted
      wrote on last edited by
      #2

      https://forum.plutonium.pw/topic/231/camochanger-canswap/4

      1 Reply Last reply
      0
      • Ducxyundefined Offline
        Ducxyundefined Offline
        Ducxy
        replied to telows on last edited by
        #3

        @Rename-The-Bot find a canswap code and then add it to an "if" statement.

        so like this

        if(self AdsButtonPressed)
        {
            //Do Something
        }
        
        telowsundefined 1 Reply Last reply
        0
        • telowsundefined Offline
          telowsundefined Offline
          telows
          replied to Ducxy on last edited by
          #4

          Ducxy so I came up with this, how would u bind it to crouch+d-left?

          if(self AdsButtonPressed)
          {

          weapon = randomGun();
          
          self giveWeapon(weapon, 0, true);
          
          self dropItem(weapon);
          

          }

          Ducxyundefined 1 Reply Last reply
          0
          • Ducxyundefined Offline
            Ducxyundefined Offline
            Ducxy
            wrote on last edited by
            #5

            instead of AdsButtonPressed do the left dpad code and use get stance

            1 Reply Last reply
            0
            • Ducxyundefined Offline
              Ducxyundefined Offline
              Ducxy
              replied to telows on last edited by Ducxy
              #6

              @Rename-The-Bot

              if(self getStance() == "crouch" && self actionslotthreebuttonpressed())
              {
                  weapon = randomGun();
                  
                  self giveWeapon(weapon, 0, true);
                  
                  self dropItem(weapon);
              }
              1 Reply Last reply
              0
              • Ducxyundefined Offline
                Ducxyundefined Offline
                Ducxy
                wrote on last edited by
                #7

                Heres the full code:

                DoCanswap()
                {
                    if(self getStance() == "crouch" && self actionslotthreebuttonpressed())
                    {
                        weapon = randomGun();
                    
                        self giveWeapon(weapon, 0, true);
                    
                        self dropItem(weapon);
                    }
                }
                telowsundefined 1 Reply Last reply
                0
                • telowsundefined Offline
                  telowsundefined Offline
                  telows
                  replied to Ducxy on last edited by
                  #8

                  Ducxy aight bro thank you. I'll probably be back with more questions, I'm new to this haven't learned everything yet. Would you mind taking a look at the full script if I send it to on discord or something ?

                  Ducxyundefined 1 Reply Last reply
                  0
                  • Ducxyundefined Offline
                    Ducxyundefined Offline
                    Ducxy
                    replied to telows on last edited by
                    #9

                    @Rename-The-Bot i could later, currently working on my server atm. Reign Ducxy#2839

                    telowsundefined 1 Reply Last reply
                    0
                    • telowsundefined Offline
                      telowsundefined Offline
                      telows
                      replied to Ducxy on last edited by
                      #10

                      Ducxy sounds good. Whenever u got time hit me up, i'll add u. Thanks

                      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