UGameplayAbility::K2_CommitAbilityCooldown

Attempts to commit the ability's cooldown only.

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

UFUNCTION(BlueprintCallable, Category=Ability, DisplayName="CommitAbilityCooldown",
          Meta=(ScriptName="CommitAbilityCooldown"))
virtual bool K2_CommitAbilityCooldown
(
    bool BroadcastCommitEvent,
    bool ForceCooldown
)

Remarks

Attempts to commit the ability's cooldown only. If BroadcastCommitEvent is true, it will broadcast the commit event that tasks like WaitAbilityCommit are listening for.