Navigation
API > API/Plugins > API/Plugins/GameplayAbilities > API/Plugins/GameplayAbilities/Abilities > API/Plugins/GameplayAbilities/Abilities/Tasks
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UGameplayTask
- UAbilityTask
- UAbilityTask_WaitGameplayEvent
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&40;&41;
class UAbilityTask_WaitGameplayEvent : public UAbilityTask
Variables
| Type | Name | Description | |
|---|---|---|---|
| FWaitGameplayEventDelegate | EventReceived | ||
| FDelegateHandle | MyHandle | ||
| bool | OnlyMatchExact | ||
| bool | OnlyTriggerOnce | ||
| TObjectPtr< UAbilitySystemComponent > | OptionalExternalTarget | ||
| FGameplayTag | Tag | ||
| bool | UseExternalTarget |
Constructors
| Type | Name | Description | |
|---|---|---|---|
UAbilityTask_WaitGameplayEvent
(
const FObjectInitializer& ObjectInitializer |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | GameplayEventCallback
(
const FGameplayEventData* Payload |
||
| void | GameplayEventContainerCallback
(
FGameplayTag MatchingTag, |
||
| UAbilitySystemComponent * | GetTargetASC () |
||
| void | SetExternalTarget
(
AActor* Actor |
||
| UAbilityTask_WaitGameplayEvent * | WaitGameplayEvent
(
UGameplayAbility* OwningAbility, |
Wait until the specified gameplay tag event is triggered. |
Overridden from UGameplayTask
| Type | Name | Description | |
|---|---|---|---|
| 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 | |
| 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. |