UAbilityAsync_WaitGameplayTagAdded::WaitGameplayTagAddToActor

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.

Windows
MacOS
Linux

References

Module

GameplayAbilities

Header

/Engine/Plugins/Runtime/GameplayAbilities/Source/GameplayAbilities/Public/Abilities/Async/AbilityAsync_WaitGameplayTag.h

Include

#include "Abilities/Async/AbilityAsync_WaitGameplayTag.h"

Source

/Engine/Plugins/Runtime/GameplayAbilities/Source/GameplayAbilities/Private/Abilities/Async/AbilityAsync_WaitGameplayTag.cpp

Syntax

[UFUNCTION](Programming/UnrealArchitecture/Reference/Functions)(BlueprintCallable, Category="Ability|Tasks",
          Meta=(DefaultToSelf="TargetActor", BlueprintInternalUseOnly="TRUE"))
static UAbilityAsync_WaitGameplayTagAdded * WaitGameplayTagAddToActor
(
    AActor * TargetActor,
    FGameplayTag Tag,
    bool OnlyTriggerOnce
)

Remarks

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.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss