Navigation
API > API/Plugins > API/Plugins/GameplayAbilities > API/Plugins/GameplayAbilities/UAbilityAsync_WaitGameplayTagAdd-
Description
Wait until the specified gameplay tag is Added to Target Actor's ability component If the tag is already present when this task is started, it will immediately broadcast the Added event. It will keep listening as long as OnlyTriggerOnce = false. If used in an ability graph, this async action will wait even after activation ends. It's recommended to use WaitGameplayTagAdd instead.
| Name | WaitGameplayTagAddToActor |
| Type | function |
| Header File | /Engine/Plugins/Runtime/GameplayAbilities/Source/GameplayAbilities/Public/Abilities/Async/AbilityAsync_WaitGameplayTag.h |
| Include Path | #include "Abilities/Async/AbilityAsync_WaitGameplayTag.h" |
| Source | /Engine/Plugins/Runtime/GameplayAbilities/Source/GameplayAbilities/Private/Abilities/Async/AbilityAsync_WaitGameplayTag.cpp |
UFUNCTION (BlueprintCallable, Category="Ability|Tasks",
Meta=(DefaultToSelf="TargetActor", BlueprintInternalUseOnly="TRUE"))
static UAbilityAsync_WaitGameplayTagAdded * WaitGameplayTagAddToActor
(
AActor * TargetActor,
FGameplayTag Tag,
bool OnlyTriggerOnce
)