Navigation

    CCBlueX Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    How to make criticals turn off after 3 hits?

    ScriptAPI
    7
    14
    183
    Loading More Posts
    • 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.
    • romnaed
      romnaed last edited by romnaed

      How to make criticals turn off after 3 hits?

      HabitualDeep ByGraf 2 Replies Last reply Reply Quote 0
      • HabitualDeep
        HabitualDeep @romnaed last edited by

        @romnaed keybind it

        HabitualDeep 1 Reply Last reply Reply Quote 0
        • HabitualDeep
          HabitualDeep @HabitualDeep last edited by

          @gc-onetap i mean bind it

          romnaed 1 Reply Last reply Reply Quote 0
          • romnaed
            romnaed @HabitualDeep last edited by

            @gc-onetap
            No, I need critics to turn off auto

            IndomsGods 1 Reply Last reply Reply Quote 0
            • IndomsGods
              IndomsGods @romnaed last edited by

              @romnaed like AutoDisableAura???

              romnaed 2 Replies Last reply Reply Quote 0
              • romnaed
                romnaed @IndomsGods last edited by

                This post is deleted!
                1 Reply Last reply Reply Quote 0
                • romnaed
                  romnaed @IndomsGods last edited by

                  @indomsgods yes

                  HabitualDeep 1 Reply Last reply Reply Quote 0
                  • ?
                    A Former User last edited by

                    there's no reason to turn criticals off after 3 hits

                    1 Reply Last reply Reply Quote 0
                    • HabitualDeep
                      HabitualDeep @romnaed last edited by

                      @romnaed why do u want it to turn off

                      Plumer Man 1 Reply Last reply Reply Quote 0
                      • Plumer Man
                        Plumer Man @HabitualDeep last edited by

                        @habitualdeep so he dosent get kicked for no fall because he use no ground

                        1 Reply Last reply Reply Quote 0
                        • ByGraf
                          ByGraf @romnaed last edited by

                          @romnaed
                          var count = 0;
                          var crit = moduleManager.getModule("Criticals");

                          this.onAttack = function(event) {
                          count = count+1;
                          }

                          this.onUpdate = function() {
                          if (count == 3){
                          crit.setState(false);
                          count = 0;
                          }
                          }

                          something like this it could look like idk if it works

                          hope it helped

                          Stfwissue 1 Reply Last reply Reply Quote 0
                          • Stfwissue
                            Stfwissue @ByGraf last edited by Stfwissue

                            @bygraf Here is the fixed version

                            var crit = moduleManager.getModule("Criticals");
                            var count = 0; 
                            this.onAttack = function() {
                            	count++
                            	} 
                            
                            this.onUpdate = function() {
                            	if (count == 3) { 
                            		crit.setState(false); 
                            		var count = 0; 
                            		} 
                            
                            ByGraf 1 Reply Last reply Reply Quote 0
                            • ByGraf
                              ByGraf @Stfwissue last edited by

                              @ali00035 nice 😄

                              Stfwissue 1 Reply Last reply Reply Quote 0
                              • Stfwissue
                                Stfwissue @ByGraf last edited by

                                @bygraf 😄

                                1 Reply Last reply Reply Quote 0
                                • First post
                                  Last post