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

Plutonium

  1. Home
  2. BO2 Modding Support & Discussion
  3. [Support] last cooldown wont work

[Support] last cooldown wont work

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

    i cant get last calldown to work i call it in on player connect

        self endon( "disconnect" );
        self endon( "cooldownSet" );
       
        self.lastCooldown = true;
           
        for(;;) {
            if( self.lastCooldown && ((level.scorelimit - self.pers["kills"]) == 1) ) {
                self.lastCooldown = false;
                self freezeControls( true );
                self enableInvulnerability();
                self iPrintlnBold("^4YOU'RE ON LAST!");
                wait 1.25;
                self freezeControls( false );
                self disableInvulnerability();
                self notify( "cooldownSet" );
            }
           
            wait 0.25;
        }```
    
    my code
    1 Reply Last reply
    0
    • homuraundefined Offline
      homuraundefined Offline
      homura
      Banned
      wrote on last edited by
      #2

      Why call it on connect? Also try pasting your code again.

      1 Reply Last reply
      0
      • Sassundefined Offline
        Sassundefined Offline
        Sass
        Plutonium Staff
        wrote on last edited by
        #3

        Call this on spawn, not connect

        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


        • Login

        • Don't have an account? Register

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