UAbilityTask_Repeat

Repeat a task a certain number of times at a given interval.

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

GameplayAbilities

Header

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

Include

#include "Abilities/Tasks/AbilityTask_Repeat.h"

Syntax

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

Remarks

Repeat a task a certain number of times at a given interval.

Variables

Name Description

Protected variable

int32

 

ActionCounter

Protected variable

int32

 

ActionPerformancesDesired

Public variable UProperty BlueprintAssignable

FRepeatedAction...

 

OnFinished

Public variable UProperty BlueprintAssignable

FRepeatedAction...

 

OnPerformAction

Protected variable

float

 

TimeBetweenActions

Protected variable

FTimerHandle

 

TimerHandle_PerformAction

Handle for efficient management of PerformAction timer

Constructors

Name Description

Public function

UAbilityTask_Repeat

(
    const FObjectInitializer& ObjectIn...
)

Functions

Name Description

Public function

void

 

PerformAction()

Public function Static UFunction BlueprintCallable, Category, Meta

UAbilityTask...

 

RepeatAction

(
    UGameplayAbility* OwningAbilit...,
    float TimeBetweenActions,
    int32 TotalActionCount
)

Start a task that repeats an action or set of actions.

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 Const

FString

 

GetDebugString()

Return debug string describing task

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