UAbilityTask_WaitGameplayEvent

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

GameplayAbilities

Header

/Engine/Plugins/Runtime/GameplayAbilities/Source/GameplayAbilities/Public/Abilities/Tasks/AbilityTask_WaitGameplayEvent.h

Include

#include "Abilities/Tasks/AbilityTask_WaitGameplayEvent.h"

Syntax

[UCLASS](Programming/UnrealArchitecture/Reference/Classes#classdeclaration)()
class UAbilityTask_WaitGameplayEvent : public UAbilityTask

Variables

Name Description

Public variable UProperty BlueprintAssignable

FWaitGameplayEv...

 

EventReceived

Public variable

FDelegateHandle

 

MyHandle

Public variable

bool

 

OnlyMatchExact

Public variable

bool

 

OnlyTriggerOnce

Public variable UProperty

UAbilitySystemC...

 

OptionalExternalTarget

Public variable

FGameplayTag

 

Tag

Public variable

bool

 

UseExternalTarget

Constructors

Name Description

Public function

UAbilityTask_WaitGameplayEvent

(
    const FObjectInitializer& ObjectIn...
)

Functions

Name Description

Public function Virtual

void

 

GameplayEventCallback

(
    const FGameplayEventData* Payl...
)

Public function Virtual

void

 

GameplayEventContainerCallback

(
    FGameplayTag MatchingTag,
    const FGameplayEventData* Payl...
)

Public function

UAbilitySyst...

 

GetTargetASC()

Public function

void

 

SetExternalTarget

(
    AActor* Actor
)

Public function Static UFunction BlueprintCallable, Category, Meta

UAbilityTask...

 

WaitGameplayEvent

(
    UGameplayAbility* OwningAbilit...,
    FGameplayTag EventTag,
    AActor* OptionalExternalTarget,
    bool OnlyTriggerOnce,
    bool OnlyMatchExact
)

Wait until the specified gameplay tag event is triggered.

Overridden from UGameplayTask

Name Description

Public function Virtual

void

 

Activate()

Called to trigger the actual task once the delegates have been set up Note that the default implementation does nothing and you don't have to call it

Public function Virtual

void

 

OnDestroy

(
    bool bInOwnerFinished
)

End and CleanUp the task - may be called by the task itself or by the task owner if the owner is ending.

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