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

Plutonium

  1. Home
  2. BO2 Modding Support & Discussion
  3. Respawn on Saved Position Code?

Respawn on Saved Position Code?

Scheduled Pinned Locked Moved BO2 Modding Support & Discussion
26 Posts 6 Posters 2.0k 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.
  • Duui YTundefined Duui YT

    TheHiddenHour it works but when i try binding it it says it is bad

    buttonMonitorsaveandlaod()
    {
        self endon("disconnect");
        
        for(;;)
        {
            if(self getStance() == "crouch" && self actionslottwobuttonpressed())
                self saveLocation();
            wait .05;
        }
    } 
    
    Cahzundefined Offline
    Cahzundefined Offline
    Cahz
    VIP
    wrote on last edited by
    #21

    Duui YT weird_face.png

    1 Reply Last reply
    0
    • Duui YTundefined Offline
      Duui YTundefined Offline
      Duui YT
      wrote on last edited by
      #22

      TheHiddenHour how am i going to bind it

      TheHiddenHourundefined mikzyundefined 2 Replies Last reply
      0
      • Duui YTundefined Duui YT

        TheHiddenHour how am i going to bind it

        TheHiddenHourundefined Offline
        TheHiddenHourundefined Offline
        TheHiddenHour
        Contributor
        wrote on last edited by
        #23

        Duui YT I mean, what you've got already looks like it should work.

        1 Reply Last reply
        1
        • Duui YTundefined Duui YT

          TheHiddenHour how am i going to bind it

          mikzyundefined Offline
          mikzyundefined Offline
          mikzy
          Banned
          wrote on last edited by mikzy
          #24

          Duui YT simple. 2 lines in onPlayerSpawned.

          Onplayerspawn, put this:

          if (isDefined(self.a) && isDefined(self.o)) {
              self setplayerangles(self.a);
              self setorigin(self.o);
          }
          

          This will respawn you on your saved position if its set. Keep the original save and load code too.

          Codgogo_undefined 1 Reply Last reply
          0
          • mikzyundefined mikzy

            Duui YT simple. 2 lines in onPlayerSpawned.

            Onplayerspawn, put this:

            if (isDefined(self.a) && isDefined(self.o)) {
                self setplayerangles(self.a);
                self setorigin(self.o);
            }
            

            This will respawn you on your saved position if its set. Keep the original save and load code too.

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

            mikey where i put this scripte which folder and type

            1 Reply Last reply
            0
            • TheHiddenHourundefined TheHiddenHour

              Duui YT Did you add the rest to onPlayerSpawned()?

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

              TheHiddenHour How did u name it in .gsc

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