Handling multiple abilities with cooldowns for separate characters

I have a game with multiple characters that have several abilities, how can I efficiently deal with this? The character abilities are all being handled in the same function, so how can I efficiently implement debounces with different cooldowns. I have looked for the answer, but I haven’t found any topics, and I can’t think of anything myself.

the easiest way i can think of doing this would be applying a tag like “MoveNameCooldown” when it goes on cooldown, and then removing it after a period of time. And using Character:HasTag() for the debounce

Interesting, I’ve never looked into tags, I’ll make sure to and mark this as a solution if it works.

This worked great! I’ll make sure to use tags for this kind of thing for now on.

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