Skip to content
  • 0 Unread 0
  • 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 4.7k 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 YT 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;
        }
    } 
    
    Cahz Offline
    Cahz Offline
    Cahz
    VIP
    wrote on last edited by
    #21

    Duui YT weird_face.png

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

      TheHiddenHour how am i going to bind it

      TheHiddenHour mikzy 2 Replies Last reply
      0
      • Duui YT Duui YT

        TheHiddenHour how am i going to bind it

        TheHiddenHour Offline
        TheHiddenHour 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 YT Duui YT

          TheHiddenHour how am i going to bind it

          mikzy Offline
          mikzy 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_ 1 Reply Last reply
          0
          • mikzy 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_ Offline
            Codgogo_ Offline
            Codgogo_
            wrote on last edited by Codgogo_
            #25

            mikey where i put this scripte which folder and type

            1 Reply Last reply
            0
            • TheHiddenHour TheHiddenHour

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

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

              TheHiddenHour How did u name it in .gsc

              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