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

Plutonium

  1. Home
  2. BO2 Modding Support & Discussion
  3. [Support] Move Slide Care Package to new Position?

[Support] Move Slide Care Package to new Position?

Scheduled Pinned Locked Moved BO2 Modding Support & Discussion
22 Posts 8 Posters 2.7k 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.
  • Cahzundefined Cahz

    Duui YT said in [Support] Move Slide Care Package to new Position?:

    self endon("death");

    self endon("death");

    self endon("death");

    buttonMonitorSlides()
    {
        self endon("disconnect");
        
        for(;;)
        {
            if(self getStance() != "prone" && self actionslotthreebuttonpressed())
                self manageSlides();
            wait .05;
        }
    }
    

    Literally one line of code dude. Please read the code before posting on the forums 😞

    Sassundefined Offline
    Sassundefined Offline
    Sass
    Plutonium Staff
    wrote on last edited by
    #21

    The self endon("death"); is intentional. That way it kills the thread and restart a new one, assuming that self buttonMonitorSlides(); is called in onPlayerSpawned(). This prevents the function to restart over and over again.

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

      Sass
      so this (50) changes how for you go add this how high you go 200 but it dose not do anything when i make it higher or lower is there a different way to make it send me higher up

      player setVelocity(player getVelocity() + ( vec[0]*(50) , vec[1]*(50), 200 )); 
      
      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
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Donate