Navigation
API > API/Plugins > API/Plugins/GameplayAbilities > API/Plugins/GameplayAbilities/Abilities > API/Plugins/GameplayAbilities/Abilities/Async > API/Plugins/GameplayAbilities/Abilities/Async/UAbilityAsync_WaitGameplayEvent
References
| Module | GameplayAbilities |
| Header | /Engine/Plugins/Runtime/GameplayAbilities/Source/GameplayAbilities/Public/Abilities/Async/AbilityAsync_WaitGameplayEvent.h |
| Include | #include "Abilities/Async/AbilityAsync_WaitGameplayEvent.h" |
| Source | /Engine/Plugins/Runtime/GameplayAbilities/Source/GameplayAbilities/Private/Abilities/Async/AbilityAsync_WaitGameplayEvent.cpp |
UFUNCTION&40;BlueprintCallable, Category&61;"Ability&124;Async",
Meta&61;&40;DefaultToSelf&61;"TargetActor", BlueprintInternalUseOnly&61;"TRUE"&41;&41;
static UAbilityAsync_WaitGameplayEvent &42; WaitGameplayEventToActor
&40;
AActor &42; TargetActor,
FGameplayTag EventTag,
bool OnlyTriggerOnce,
bool OnlyMatchExact
&41;
Remarks
Wait until the specified gameplay tag event is triggered on a target ability system component It will keep listening as long as OnlyTriggerOnce = false If OnlyMatchExact = false it will trigger for nested tags If used in an ability graph, this async action will wait even after activation ends. It's recommended to use WaitGameplayEvent instead.