r/OriginsSMP•
Darkisitu

Cooldown and Trigger Cooldown

Meta

I'm having trouble about making a cooldown for my ability.

Normally I manage to use cooldown just fine, but I'm struggling to code this one.

I have a toggle ability that activates a "transformation" when health >0.5 (the other abilities depend on this skill being toggled on, including a secondary active ability that only works when the first is toggled on).

Now, for balancing purposes I want it to have a cooldown that triggers only when toggling it off/no longer fulfill the condition to sustain it.

However, I only manage to code a cooldown that works on key activation instead. I need help

Posted May 17, 2024, 7:24 AM UTC

21
Loading comments…