Here’s what works for me:
I create a 0.1-second Delay
for the hide-unhide action, then subtract those 0.1 seconds from the overall cooldown (the second Delay
). I store the cooldown (default 1 second) in an exposed float variable and the bool for CanDash
in another, and aside from that, no other variables are needed.
The CanDash
variable can be used both for the cooldown and to disable the ability otherwise (unlockable, no-dash zone, bind spell, etc.).
Simple and clean.
Edit: Obviously, you’d then spawn your KY Thunder Ball Hit
before the 0.1
second Delay
.