UAbilityTask_WaitAttributeChangeRatioThreshold

Waits for the ratio between two attributes to match a threshold

Windows
MacOS
Linux

Inheritance Hierarchy

UObjectBase

UObjectBaseUtility

UObject

UGameplayTask

UAbilityTask

UAbilityTask_WaitAttributeChangeRatioThreshold

References

Module

GameplayAbilities

Header

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

Include

#include "Abilities/Tasks/AbilityTask_WaitAttributeChangeRatioThreshold.h"

Syntax

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

Remarks

Waits for the ratio between two attributes to match a threshold

Variables

Name Description

Public variable

FGameplayAttrib...

 

AttributeDenominator

Public variable

FGameplayAttrib...

 

AttributeNumerator

Protected variable

bool

 

bMatchedComparisonLastAttributeChange

Public variable

bool

 

bTriggerOnce

Protected variable

FTimerHandle

 

CheckAttributeTimer

Timer used when either numerator or denominator attribute is changed to delay checking of ratio to avoid false positives (MaxHealth changed before Health updates accordingly)

Public variable

TEnumAsByte< EW...

 

ComparisonType

Public variable

float

 

ComparisonValue

Protected variable UProperty

UAbilitySystemC...

 

ExternalOwner

Protected variable

float

 

LastAttributeDenominatorValue

Protected variable

float

 

LastAttributeNumeratorValue

Public variable UProperty BlueprintAssignable

FWaitAttributeC...

 

OnChange

Public variable

FDelegateHandle

 

OnDenominatorAttributeChangeDelegateHandle

Public variable

FDelegateHandle

 

OnNumeratorAttributeChangeDelegateHandle

Constructors

Name Description

Public function

UAbilityTask_WaitAttributeChangeRatioThreshold

(
    const FObjectInitializer& ObjectIn...
)

Functions

Name Description

Protected function Const

bool

 

DoesValuePassComparison

(
    float ValueNumerator,
    float ValueDenominator
)

Protected function

UAbilitySyst...

 

GetFocusedASC()

Protected function

void

 

OnAttributeChange()

Public function

void

 

OnDenominatorAttributeChange

(
    const FOnAttributeChangeData& Call...
)

Public function

void

 

OnNumeratorAttributeChange

(
    const FOnAttributeChangeData& Call...
)

Protected function

void

 

OnRatioChange()

Public function Static UFunction BlueprintCallable, Category, Meta

UAbilityTask...

 

WaitForAttributeChangeRatioThreshold

(
    UGameplayAbility* OwningAbilit...,
    FGameplayAttribute AttributeNumerat...,
    FGameplayAttribute AttributeDenomin...,
    TEnumAsByte< EWaitAttributeChangeCo...,
    float ComparisonValue,
    bool bTriggerOnce,
    AActor* OptionalExternalOwner
)

Wait on attribute ratio change meeting a comparison threshold.

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

Protected 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