Navigation
API > API/Plugins > API/Plugins/GameplayAbilities > API/Plugins/GameplayAbilities/Abilities > API/Plugins/GameplayAbilities/Abilities/Tasks
Inheritance Hierarchy
- UObject
- IGameplayTaskOwnerInterface
- UGameplayTask
- UAbilityTask
- UAbilityTask_WaitAttributeChange
References
| Module | GameplayAbilities |
| Header | /Engine/Plugins/Runtime/GameplayAbilities/Source/GameplayAbilities/Public/Abilities/Tasks/AbilityTask_WaitAttributeChange.h |
| Include | #include "Abilities/Tasks/AbilityTask_WaitAttributeChange.h" |
Syntax
UCLASS ()
class UAbilityTask_WaitAttributeChange : public UAbilityTask
Remarks
Waits for the actor to activate another ability
Variables
| Type | Name | Description | |
|---|---|---|---|
| FGameplayAttribute | Attribute | ||
| bool | bTriggerOnce | ||
| TEnumAsByte< EWaitAttributeChangeComparison::Type > | ComparisonType | ||
| float | ComparisonValue | ||
| TObjectPtr< UAbilitySystemComponent > | ExternalOwner | ||
| FDelegateHandle | OnAttributeChangeDelegateHandle | ||
| FWaitAttributeChangeDelegate | OnChange | ||
| FGameplayTag | WithoutTag | ||
| FGameplayTag | WithTag |
Constructors
| Type | Name | Description | |
|---|---|---|---|
UAbilityTask_WaitAttributeChange
(
const FObjectInitializer& ObjectInitializer |
Functions
| Type | Name | Description | |
|---|---|---|---|
| UAbilitySystemComponent * | |||
| void | OnAttributeChange
(
const FOnAttributeChangeData& CallbackData |
||
| UAbilityTask_WaitAttributeChange * | WaitForAttributeChange
(
UGameplayAbility* OwningAbility, |
Wait until an attribute changes. | |
| UAbilityTask_WaitAttributeChange * | WaitForAttributeChangeWithComparison
(
UGameplayAbility* OwningAbility, |
Wait until an attribute changes to pass a given test. |
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 AbilityEnded |
End and CleanUp the task - may be called by the task itself or by the task owner if the owner is ending. |