Navigation
API > API/Plugins > API/Plugins/GameplayAbilities > API/Plugins/GameplayAbilities/Abilities > API/Plugins/GameplayAbilities/Abilities/Tasks
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UGameplayTask
- UAbilityTask
- UAbilityTask_Repeat
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&40;&41;
class UAbilityTask_Repeat : public UAbilityTask
Remarks
Repeat a task a certain number of times at a given interval.
Variables
| Type | Name | Description | |
|---|---|---|---|
| int32 | ActionCounter | ||
| int32 | ActionPerformancesDesired | ||
| FRepeatedActionDelegate | OnFinished | ||
| FRepeatedActionDelegate | OnPerformAction | ||
| float | TimeBetweenActions | ||
| FTimerHandle | TimerHandle_PerformAction | Handle for efficient management of PerformAction timer |
Constructors
| Type | Name | Description | |
|---|---|---|---|
UAbilityTask_Repeat
(
const FObjectInitializer& ObjectInitializer |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | |||
| UAbilityTask_Repeat * | RepeatAction
(
UGameplayAbility* OwningAbility, |
Start a task that repeats an action or set of actions. |
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 | |
| FString | Return debug string describing task | ||
| 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. |