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

Plutonium

  1. Home
  2. BO2 Modding Support & Discussion
  3. [Support] camochanger/canswap

[Support] camochanger/canswap

Scheduled Pinned Locked Moved BO2 Modding Support & Discussion
23 Posts 6 Posters 4.0k 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.
  • lula Offline
    lula Offline
    lula
    Contributor
    wrote on last edited by Mr. Android
    #1

    Any body know how to fix this code it docent call the can swap to down dpad

    canSwap()
    {
    randy = RandomIntRange(1,45);
    weaps = self getCurrentWeapon();

     self takeWeapon( weaps );
     self giveWeapon( weaps, 0, true ( randy, 0, 0, 0, 0 ));
     self switchToWeapon( weaps );
    

    }

    And this in buttonmonitor

    if(self getStance() != "prone" && self actionslottwobuttonpressed())
    {
    self thread canSwap();
    wait .2;
    }

    Farzad Sass 2 Replies Last reply
    0
    • lula lula

      Any body know how to fix this code it docent call the can swap to down dpad

      canSwap()
      {
      randy = RandomIntRange(1,45);
      weaps = self getCurrentWeapon();

       self takeWeapon( weaps );
       self giveWeapon( weaps, 0, true ( randy, 0, 0, 0, 0 ));
       self switchToWeapon( weaps );
      

      }

      And this in buttonmonitor

      if(self getStance() != "prone" && self actionslottwobuttonpressed())
      {
      self thread canSwap();
      wait .2;
      }

      Farzad Offline
      Farzad Offline
      Farzad
      wrote on last edited by
      #2

      lula hi lula πŸ‘‹πŸ», your server doesn’t have save & L anymore

      1 Reply Last reply
      0
      • lula lula

        Any body know how to fix this code it docent call the can swap to down dpad

        canSwap()
        {
        randy = RandomIntRange(1,45);
        weaps = self getCurrentWeapon();

         self takeWeapon( weaps );
         self giveWeapon( weaps, 0, true ( randy, 0, 0, 0, 0 ));
         self switchToWeapon( weaps );
        

        }

        And this in buttonmonitor

        if(self getStance() != "prone" && self actionslottwobuttonpressed())
        {
        self thread canSwap();
        wait .2;
        }

        Sass Offline
        Sass Offline
        Sass
        Plutonium Staff
        wrote on last edited by Sass
        #3

        lula Normally I'd reply with "google is your best friend" like you do with other people here, but I'm in a good mood today so here you go.


        Call self thread buttonMonitor(); in onPlayerSpawned();

        buttonMonitor()
        {
            self endon("death");
            self endon("disconnect");
            
            for(;;)
            {
                if(self getStance() != "prone" && self actionslottwobuttonpressed())
                    self doCanSwap();
                wait .05;
            }
        }
        
        doCanSwap()
        {
            currentWeapon = self getCurrentWeapon();
            self takeWeapon(currentWeapon);
            self giveWeapon(currentWeapon, 0, true (randomIntRange(1,45), 0, 0, 0, 0));
            self switchToWeapon(currentWeapon);
        }
        
        
        Farzad 1 Reply Last reply
        0
        • Sass Sass

          lula Normally I'd reply with "google is your best friend" like you do with other people here, but I'm in a good mood today so here you go.


          Call self thread buttonMonitor(); in onPlayerSpawned();

          buttonMonitor()
          {
              self endon("death");
              self endon("disconnect");
              
              for(;;)
              {
                  if(self getStance() != "prone" && self actionslottwobuttonpressed())
                      self doCanSwap();
                  wait .05;
              }
          }
          
          doCanSwap()
          {
              currentWeapon = self getCurrentWeapon();
              self takeWeapon(currentWeapon);
              self giveWeapon(currentWeapon, 0, true (randomIntRange(1,45), 0, 0, 0, 0));
              self switchToWeapon(currentWeapon);
          }
          
          
          Farzad Offline
          Farzad Offline
          Farzad
          wrote on last edited by
          #4

          Sass where do I paste that

          Sass 1 Reply Last reply
          0
          • Farzad Farzad

            Sass where do I paste that

            Sass Offline
            Sass Offline
            Sass
            Plutonium Staff
            wrote on last edited by Sass
            #5

            Farzad I was about to reply to the topic you deleted. What lula wants is different than what you want.

            Here's what was supposed to be the reply :


            The gsc to drop your current weapon is self dropItem(self getCurrentWeapon());.

            You'll probably need to make something that detects your input to call it, like the example below. This will make you drop the weapon when you press the "Use" and "Action Slot 2*" at the same time. Then call self thread dropWeaponInput(); in onPlayerSpawned() for it to work.

            dropWeaponInput()
            {
                self endon("death");
                self endon("disconnect");
                
                for(;;)
                {
                    if(self usebuttonpressed() && self actionslottwobuttonpressed())
                    	self dropItem(self getCurrentWeapon());
                    wait .05;
                }
            }
            

            *: "Action Slot 2" is Dpad Down on controller, or 2 by default on KB&M

            Farzad 4 Replies Last reply
            0
            • Sass Sass

              Farzad I was about to reply to the topic you deleted. What lula wants is different than what you want.

              Here's what was supposed to be the reply :


              The gsc to drop your current weapon is self dropItem(self getCurrentWeapon());.

              You'll probably need to make something that detects your input to call it, like the example below. This will make you drop the weapon when you press the "Use" and "Action Slot 2*" at the same time. Then call self thread dropWeaponInput(); in onPlayerSpawned() for it to work.

              dropWeaponInput()
              {
                  self endon("death");
                  self endon("disconnect");
                  
                  for(;;)
                  {
                      if(self usebuttonpressed() && self actionslottwobuttonpressed())
                      	self dropItem(self getCurrentWeapon());
                      wait .05;
                  }
              }
              

              *: "Action Slot 2" is Dpad Down on controller, or 2 by default on KB&M

              Farzad Offline
              Farzad Offline
              Farzad
              wrote on last edited by
              #6
              This post is deleted!
              1 Reply Last reply
              0
              • Sass Sass

                Farzad I was about to reply to the topic you deleted. What lula wants is different than what you want.

                Here's what was supposed to be the reply :


                The gsc to drop your current weapon is self dropItem(self getCurrentWeapon());.

                You'll probably need to make something that detects your input to call it, like the example below. This will make you drop the weapon when you press the "Use" and "Action Slot 2*" at the same time. Then call self thread dropWeaponInput(); in onPlayerSpawned() for it to work.

                dropWeaponInput()
                {
                    self endon("death");
                    self endon("disconnect");
                    
                    for(;;)
                    {
                        if(self usebuttonpressed() && self actionslottwobuttonpressed())
                        	self dropItem(self getCurrentWeapon());
                        wait .05;
                    }
                }
                

                *: "Action Slot 2" is Dpad Down on controller, or 2 by default on KB&M

                Farzad Offline
                Farzad Offline
                Farzad
                wrote on last edited by
                #7

                Sass I’m gonna try now thanks

                1 Reply Last reply
                0
                • Sass Sass

                  Farzad I was about to reply to the topic you deleted. What lula wants is different than what you want.

                  Here's what was supposed to be the reply :


                  The gsc to drop your current weapon is self dropItem(self getCurrentWeapon());.

                  You'll probably need to make something that detects your input to call it, like the example below. This will make you drop the weapon when you press the "Use" and "Action Slot 2*" at the same time. Then call self thread dropWeaponInput(); in onPlayerSpawned() for it to work.

                  dropWeaponInput()
                  {
                      self endon("death");
                      self endon("disconnect");
                      
                      for(;;)
                      {
                          if(self usebuttonpressed() && self actionslottwobuttonpressed())
                          	self dropItem(self getCurrentWeapon());
                          wait .05;
                      }
                  }
                  

                  *: "Action Slot 2" is Dpad Down on controller, or 2 by default on KB&M

                  Farzad Offline
                  Farzad Offline
                  Farzad
                  wrote on last edited by
                  #8

                  Sass its saying bad syntax line 420

                  1 Reply Last reply
                  0
                  • Sass Sass

                    Farzad I was about to reply to the topic you deleted. What lula wants is different than what you want.

                    Here's what was supposed to be the reply :


                    The gsc to drop your current weapon is self dropItem(self getCurrentWeapon());.

                    You'll probably need to make something that detects your input to call it, like the example below. This will make you drop the weapon when you press the "Use" and "Action Slot 2*" at the same time. Then call self thread dropWeaponInput(); in onPlayerSpawned() for it to work.

                    dropWeaponInput()
                    {
                        self endon("death");
                        self endon("disconnect");
                        
                        for(;;)
                        {
                            if(self usebuttonpressed() && self actionslottwobuttonpressed())
                            	self dropItem(self getCurrentWeapon());
                            wait .05;
                        }
                    }
                    

                    *: "Action Slot 2" is Dpad Down on controller, or 2 by default on KB&M

                    Farzad Offline
                    Farzad Offline
                    Farzad
                    wrote on last edited by
                    #9

                    Sass can you send me from line 1 to the end line? im not sure what "call player spawn" is man>

                    1 Reply Last reply
                    0
                    • kuxqi Offline
                      kuxqi Offline
                      kuxqi
                      wrote on last edited by kuxqi
                      #10

                      Farzad where it says (on player spawn) put this self thread dropWeaponInput(); that is what he meant its in mainn.gsc

                      Farzad 1 Reply Last reply
                      0
                      • Farzad Offline
                        Farzad Offline
                        Farzad
                        wrote on last edited by
                        #11

                        bro i know nothing on this, please add me in discord plz man, i wll pay you to put the code things on the file, or send me compiled one i will pay man

                        Sass 1 Reply Last reply
                        0
                        • kuxqi kuxqi

                          Farzad where it says (on player spawn) put this self thread dropWeaponInput(); that is what he meant its in mainn.gsc

                          Farzad Offline
                          Farzad Offline
                          Farzad
                          wrote on last edited by
                          #12

                          kuxqi my servers are so dead man, i need this badly plz bro help me i will do anything

                          1 Reply Last reply
                          0
                          • kuxqi Offline
                            kuxqi Offline
                            kuxqi
                            wrote on last edited by
                            #13

                            whats ya discord bro ?/

                            Farzad 1 Reply Last reply
                            0
                            • Farzad Farzad

                              bro i know nothing on this, please add me in discord plz man, i wll pay you to put the code things on the file, or send me compiled one i will pay man

                              Sass Offline
                              Sass Offline
                              Sass
                              Plutonium Staff
                              wrote on last edited by Sass
                              #14

                              Farzad You shouldn't tell someone that you're ready to pay them to copy/paste something. Alot of people would abuse you and try everything to extort money from you if you say such things. Not to mention that this kind of behavior does nothing but make these "I pay you for helping me doing very simple stuff" situations morally acceptable, while they're really not.

                              This is pretty simple stuff we're talking about, stuff that you normally don't pay for. It's fine to ask for help, but you shouldn't have to advance money in order to get some.

                              Farzad 2 Replies Last reply
                              0
                              • Ox_ Offline
                                Ox_ Offline
                                Ox_
                                wrote on last edited by
                                #15

                                How is this dude a "contributor" lmfao.
                                What does that even mean.

                                Drgn 1 Reply Last reply
                                0
                                • kuxqi Offline
                                  kuxqi Offline
                                  kuxqi
                                  wrote on last edited by
                                  #16

                                  Sass im helping for free bro

                                  1 Reply Last reply
                                  0
                                  • Ox_ Ox_

                                    How is this dude a "contributor" lmfao.
                                    What does that even mean.

                                    Drgn Offline
                                    Drgn Offline
                                    Drgn
                                    Plutonium Staff
                                    wrote on last edited by
                                    #17

                                    Ox_ It means he donated to the project.

                                    Ox_ 1 Reply Last reply
                                    0
                                    • Sass Sass

                                      Farzad You shouldn't tell someone that you're ready to pay them to copy/paste something. Alot of people would abuse you and try everything to extort money from you if you say such things. Not to mention that this kind of behavior does nothing but make these "I pay you for helping me doing very simple stuff" situations morally acceptable, while they're really not.

                                      This is pretty simple stuff we're talking about, stuff that you normally don't pay for. It's fine to ask for help, but you shouldn't have to advance money in order to get some.

                                      Farzad Offline
                                      Farzad Offline
                                      Farzad
                                      wrote on last edited by
                                      #18

                                      Sass then if i ask you to message me on discord a compiled .gsc file of the canswap you will not do it, you reply wil be "google" or "call fuction" or "you do it" or "im not spoon feed man" can plz help?

                                      1 Reply Last reply
                                      0
                                      • kuxqi kuxqi

                                        whats ya discord bro ?/

                                        Farzad Offline
                                        Farzad Offline
                                        Farzad
                                        wrote on last edited by Farzad
                                        #19

                                        kuxqi ravel#0608 is my discord man. thanks alot

                                        :::

                                        πŸ‘ Spoiler Text

                                        :::

                                        1 Reply Last reply
                                        0
                                        • Sass Sass

                                          Farzad You shouldn't tell someone that you're ready to pay them to copy/paste something. Alot of people would abuse you and try everything to extort money from you if you say such things. Not to mention that this kind of behavior does nothing but make these "I pay you for helping me doing very simple stuff" situations morally acceptable, while they're really not.

                                          This is pretty simple stuff we're talking about, stuff that you normally don't pay for. It's fine to ask for help, but you shouldn't have to advance money in order to get some.

                                          Farzad Offline
                                          Farzad Offline
                                          Farzad
                                          wrote on last edited by
                                          #20

                                          Sass the stuff you just told me give me syntax error, i dont even know how to do this, ifind no point in leraning becuase its all already done, every thinbg you need is here, thats why, im just not sure how to setup the thing man im so sorry

                                          Sass 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


                                          • 1
                                          • 2
                                          • Login

                                          • Don't have an account? Register

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