UGameplayAbility::GetCooldownTimeRemainingAndDuration

Returns the time in seconds remaining on the currently active cooldown and the original duration for this cooldown.

Choose your operating system:

Windows

macOS

Linux

References

Module

GameplayAbilities

Header

/Engine/Plugins/Runtime/GameplayAbilities/Source/GameplayAbilities/Public/Abilities/GameplayAbility.h

Include

#include "Abilities/GameplayAbility.h"

Source

/Engine/Plugins/Runtime/GameplayAbilities/Source/GameplayAbilities/Private/Abilities/GameplayAbility.cpp

Syntax

virtual void GetCooldownTimeRemainingAndDuration
(
    FGameplayAbilitySpecHandle Handle,
    const FGameplayAbilityActorInfo * ActorInfo,
    float & TimeRemaining,
    float & CooldownDuration
) const

Remarks

Returns the time in seconds remaining on the currently active cooldown and the original duration for this cooldown.