Hey there. I can’t crack this one, and it’s killing me.
I made a custom ability, and it’s working fine, but I don’t know how to make it so the cooldown is displayed (as a hud text).
Does anyone know how I can display a cooldown or countdown? Thanks
Hey there. I can’t crack this one, and it’s killing me.
I made a custom ability, and it’s working fine, but I don’t know how to make it so the cooldown is displayed (as a hud text).
Does anyone know how I can display a cooldown or countdown? Thanks
If you have the cooldown already tied to a player/global variable you can just insert this variable as the header value in the HUD text creation.
A Shrew’s Berry has a good tutorial on YouTube you can follow.
Create a text hud that tracks a variable that is the cooldown of the ability (personally I set this as a conditionless action near the top of my rules, so the player can always see the available cooldown).
It essentially boils down to setting your cooldown as a variable, then you have to chase variable over time equal to how long the cooldown is. Add a wait condition equal to the variable that’s chasing down over time so you can’t keep activating the ability.