Trigger Loop Cooldown System

Problem:
I am trying to create a cooldown system using a trigger loop instead of a repeater that I was using before. The problem is that once the cooldown is over, the trigger loop continues to run which stack onto each other causing a faster cooldown. I don’t want to re-wire because I know I’m going to mess with the system. I want a memory-efficient solution that is simple to implement. I also want a direct solution, not a redirection to other guides because no guide has what I need (I checked).


How my system works:

1st, when the button to the ability is pressed, the cooldown timer starts and the overlay changes to a text overlay with “Cooldown: __” which counts down using the trigger loop.

2nd, at the [ability time] seconds mark, ends ability.

3rd, when the cooldown is “complete”, it resets the counter running the cooldown and should stop the trigger loop.

4th, the original overlay is restored.


Picture of one of my abilities with cooldown:


Any help appreciated!

1 Like

When counter reaches zero deactivate trigger. Deactivating a trigger in a multiple trigger trigger loop should end it. Then reactivate it after. The trigger should be reactivated after a second (?) assuming that’s the delay for your trigger loop.

1 Like

Are you saying you want something to de-activate the trigger loop, or you want to change the length? Or something along those lines, if possible could you please clarify?

I want to deactivate the trigger loop, but make it so the cooldown still functions.

I already checked, but nothing worked.

I agree with @Thats_Gimpossible, make the trigger deactivate after the counter gets to 0.

Does this help? Once the ability is activated wire to a trigger that will deactivate your trigger loop. That same trigger will also wire to another trigger that will reactivate it. This is probably really confusing, so… Sorry.

Blech. Wires

1 Like

So just to make sure I’m on the right page, you want to deactivate the ability and have a cooldown active, is there anything else?
(Just so I know what I need to say.)

This seems to work, except for spamming, but I’d say this is a good solution.

2 Likes

This topic was automatically closed 3 hours after the last reply. New replies are no longer allowed.