# Adding Cooldowns to Abilities with the gameplay ability system in 5.3+

**URL:** <https://forums.unrealengine.com/t/adding-cooldowns-to-abilities-with-the-gameplay-ability-system-in-5-3/1612390>\
**Category:** Blueprint\
**Tags:** unreal-engine, Gameplay-Ability-System\
**Created:** [January 13, 2024, 10:09pm UTC](https://forums.unrealengine.com/t/adding-cooldowns-to-abilities-with-the-gameplay-ability-system-in-5-3/1612390 "2024-01-13T22:09:29Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![ceriseraine](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ceriseraine](https://forums.unrealengine.com/u/ceriseraine)\
**Post date:** [January 13, 2024, 10:09pm UTC](https://forums.unrealengine.com/t/adding-cooldowns-to-abilities-with-the-gameplay-ability-system-in-5-3/1612390/1 "2024-01-13T22:09:29Z")

</div>

So after searching the documentation, tutorials, info on the web, I couldn’t find a clear way to add cooldowns to abilities. Often, stuff would be outdated, where some parts of the things to do were not there anymore in blueprints etc.

So I did a bit of trial and error, and finally achieved it and it’s finally quite simple. I’m writing this down for anyone else who can’t figure it out since I find the documentation on it is lacking.

First and foremost, you need an ability Blueprint. Whichever way it works is up to you. You also need a GameplayEffect Blueprint and you will add it to the ability’s cooldown gameplay effect section:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/4/4/444cb683e759034fce46c9247c2251846d5f63da.png)  
(GameplayAbility Blueprint details)

This will add this specific gameplay effect once you either call CommitAbility or CommitAbilityCooldown node in the ability blueprint. In my case, I want the cooldown to start when the ability ends, so right before calling endAbility, I commit the cooldown (could be commited at the start of the ability to start the cooldown at the start too!):

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/a/9/ea9900a34c05a354933802338feefa9323b8dae6.png)  
(GameplayAbility Graph)

This is all you need on the ability side. Now for the actual cooldown gameplay effect, you need to create the blueprint for it, and set its duration policy to “Has Duration” and in the duration magnitude section, you can use “Scalable Float”, and directly set the time you want the ability to be on cooldown for. It is also possible to use another magnitude Calculation Type, like “SetByCaller” to set the cooldown duration in the ability by using the  
“Assign Set By Caller Magnitude” blueprint node, where you set matching “Data Name” on the node and in the gameplay effect and pass in the cooldown duration in the magnitude variable.

Now, here’s what I couldn’t find documentation about. You need to grant to the actor a “cooldown” tag, and in the tutorial or documentation around the web, this is where I would get stuck, as there would be a section in the gameplay effect blueprint about tags, but it is nowhere to be found in 5.3. So from my testing, you need to add a “Target Tags Gameplay Effect Component” in the components array, and add a cooldown tag from there:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/9/4/a94d740048f22d45f9cc9414a712e455f94605f4.png)  
(GameplayEffect Blueprint Details)

And that’s it. Once you commit the cooldown, this gameplay tag will be added to your actor, and it will automatically block the possiblity of activating the ability for the reminder of the duration.

---

<div class="post-metadata">

**Author:** ![Proglo02](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Proglo02](https://forums.unrealengine.com/u/Proglo02)\
**Post date:** [February 1, 2024, 3:44pm UTC](https://forums.unrealengine.com/t/adding-cooldowns-to-abilities-with-the-gameplay-ability-system-in-5-3/1612390/2 "2024-02-01T15:44:21Z")

</div>

THANK YOU! Was about to go crazy looking for where you add the tags

---

<div class="post-metadata">

**Author:** ![ioanntza22-dev](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ioanntza22-dev/32/716729_2.png) [@ioanntza22-dev](https://forums.unrealengine.com/u/ioanntza22-dev)\
**Post date:** [February 27, 2024, 7:40am UTC](https://forums.unrealengine.com/t/adding-cooldowns-to-abilities-with-the-gameplay-ability-system-in-5-3/1612390/3 "2024-02-27T07:40:51Z")

</div>

Thank you! I spend about 2 hours to find it!

---

<div class="post-metadata">

**Author:** ![FluffyBunnyO](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/fluffybunnyo/32/692675_2.png) [@FluffyBunnyO](https://forums.unrealengine.com/u/FluffyBunnyO)\
**Post date:** [April 5, 2024, 9:34am UTC](https://forums.unrealengine.com/t/adding-cooldowns-to-abilities-with-the-gameplay-ability-system-in-5-3/1612390/4 "2024-04-05T09:34:55Z")

</div>

First of all - THANK YOU!  
Second, I wanted to add my addition, if you wish to set cooldown value by caller, you will have to do the following:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/b/9/0b97ff026b2411b612922b194ff68e23a996e764.png)

However, I’m not sure how this whole implementation works with 2 separate cooldowns for different abilities, I need to test this

---

<div class="post-metadata">

**Author:** ![FluffyBunnyO](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/fluffybunnyo/32/692675_2.png) [@FluffyBunnyO](https://forums.unrealengine.com/u/FluffyBunnyO)\
**Post date:** [April 5, 2024, 10:35am UTC](https://forums.unrealengine.com/t/adding-cooldowns-to-abilities-with-the-gameplay-ability-system-in-5-3/1612390/5 "2024-04-05T10:35:42Z")

</div>

Ok I can confirm my suspicion, having 2 or more abilities on cooldown will have to wait for all cooldowns to complete.  
Taking a look at the Lyra project it is seems that each ability will have to have it’s own unique cooldown  
Reference:

> **[Abilities in Lyra in Unreal Engine](https://dev.epicgames.com/documentation/de-de/unreal-engine/abilities-in-lyra-in-unreal-engine?application_version=5.0)**
>
> An overview of how Lyra uses the Gameplay Ability System for its Gameplay.

for example, GA\_Grenade will have GE\_Grenade\_Cooldown  
I think that there is a bug where the instigator of the effect is actually the player and not the ability, which means the caller is the player (or who ever called the ability)  
It also might explain why do we have to grant (to the target) a cooldown tag in order for the ability have a cooldown, that is because in this case the target is also the instigator.

---

<div class="post-metadata">

**Author:** ![ceriseraine](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ceriseraine](https://forums.unrealengine.com/u/ceriseraine)\
**Post date:** [April 5, 2024, 10:49pm UTC](https://forums.unrealengine.com/t/adding-cooldowns-to-abilities-with-the-gameplay-ability-system-in-5-3/1612390/6 "2024-04-05T22:49:21Z")

</div>

Yeah a cooldown Gameplay Effect needs to be created for every ability so they can each have their unique cooldown, which kinda makes sense? I wouldn’t use the same Cooldown gameplay effect for 2 different abilities even if their cooldown time is set by ref by caller since they’ll indeed be using the same gameplay effect to know when they can be activated again.

Unless you mean having stacks of the same ability which I didn’t dwelved in as of now since I won’t be needing that personnally.

---

<div class="post-metadata">

**Author:** ![jwatte](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jwatte/32/744941_2.png) [@jwatte](https://forums.unrealengine.com/u/jwatte)\
**Post date:** [April 5, 2024, 11:00pm UTC](https://forums.unrealengine.com/t/adding-cooldowns-to-abilities-with-the-gameplay-ability-system-in-5-3/1612390/7 "2024-04-05T23:00:41Z")

</div>

> [@FluffyBunnyO](#):
>
> there is a bug where the instigator of the effect is actually the player and not the ability

Instigators are the “causing actors” of whatever an effect is. A Gameplay Ability is an UObject, but not an Actor, and thus cannot be an Instigator. So, the Instigator being the player is intentional, not a bug.

---

<div class="post-metadata">

**Author:** ![ADONiX56](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ADONiX56](https://forums.unrealengine.com/u/ADONiX56)\
**Post date:** [May 22, 2024, 2:09am UTC](https://forums.unrealengine.com/t/adding-cooldowns-to-abilities-with-the-gameplay-ability-system-in-5-3/1612390/8 "2024-05-22T02:09:04Z")

</div>

Awesome! This worked perfectly! I was wondering how you guys are displaying cooldowns using this system to the UI? Is there a way to retrieve the current duration of the cooldown, or do you guys setup a separate timer of the same duration and start it at the same time?

---

<div class="post-metadata">

**Author:** ![ceriseraine](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ceriseraine](https://forums.unrealengine.com/u/ceriseraine)\
**Post date:** [June 5, 2024, 3:20am UTC](https://forums.unrealengine.com/t/adding-cooldowns-to-abilities-with-the-gameplay-ability-system-in-5-3/1612390/9 "2024-06-05T03:20:13Z")

</div>

I’d check the [Tranek documentation](https://github.com/tranek/GASDocumentation) for that, there’s a way to start the timer using gameplaytags event etc. and there’s also examples of that for for reloading displaying a timer if I remember correctly.

---

<div class="post-metadata">

**Author:** ![MotivatedDevilLM](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MotivatedDevilLM](https://forums.unrealengine.com/u/MotivatedDevilLM)\
**Post date:** [June 16, 2024, 7:34pm UTC](https://forums.unrealengine.com/t/adding-cooldowns-to-abilities-with-the-gameplay-ability-system-in-5-3/1612390/10 "2024-06-16T19:34:08Z")

</div>

This didn’t work for me.

---

<div class="post-metadata">

**Author:** ![MotivatedDevilLM](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MotivatedDevilLM](https://forums.unrealengine.com/u/MotivatedDevilLM)\
**Post date:** [June 17, 2024, 5:13pm UTC](https://forums.unrealengine.com/t/adding-cooldowns-to-abilities-with-the-gameplay-ability-system-in-5-3/1612390/11 "2024-06-17T17:13:26Z")

</div>

I have the same set up as you but when I plug in a variable to Magnitude it defaults to 1 for some reason.

---

<div class="post-metadata">

**Author:** ![ceriseraine](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ceriseraine](https://forums.unrealengine.com/u/ceriseraine)\
**Post date:** [August 30, 2024, 8:47pm UTC](https://forums.unrealengine.com/t/adding-cooldowns-to-abilities-with-the-gameplay-ability-system-in-5-3/1612390/12 "2024-08-30T20:47:44Z")

</div>

Yeah I passed over that quickly in the post. For people having problem with that, you need to set the “magnitude calculation type” to SetByCaller in the gameplay effect so it takes into account the value you set in the ability blueprint using the “Assign tag set by caller magnitude” node.

---

<div class="post-metadata">

**Author:** ![User-5969b27940](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@User-5969b27940](https://forums.unrealengine.com/u/User-5969b27940)\
**Post date:** [February 18, 2026, 6:11am UTC](https://forums.unrealengine.com/t/adding-cooldowns-to-abilities-with-the-gameplay-ability-system-in-5-3/1612390/13 "2026-02-18T06:11:41Z")

</div>

I encountered the same problem. Have you solved it?
