Navigation
API > API/Plugins > API/Plugins/GameplayAbilities > API/Plugins/GameplayAbilities/Abilities > API/Plugins/GameplayAbilities/Abilities/Tasks
Inheritance Hierarchy
- UObject
- IGameplayTaskOwnerInterface
- UGameplayTask
- UAbilityTask
- UAbilityTask_PlayAnimAndWait
References
| Module | GameplayAbilities |
| Header | /Engine/Plugins/Runtime/GameplayAbilities/Source/GameplayAbilities/Public/Abilities/Tasks/AbilityTask_PlayAnimAndWait.h |
| Include | #include "Abilities/Tasks/AbilityTask_PlayAnimAndWait.h" |
Syntax
UCLASS ()
class UAbilityTask_PlayAnimAndWait : public UAbilityTask
Variables
| Type | Name | Description | |
|---|---|---|---|
| float | AnimRootMotionTranslationScale | ||
| TObjectPtr< UAnimSequence > | AnimSequenceToPlay | ||
| FOnMontageBlendedInEnded | BlendedInDelegate | ||
| FOnMontageBlendingOutStarted | BlendingOutDelegate | ||
| float | BlendInTime | ||
| float | BlendOutTime | ||
| BlueprintInternalUseOnly | |||
| bool | bStopWhenAbilityEnds | ||
| DefaultToSelf | |||
| HidePin | Start playing an animation montage on the avatar actor and wait for it to finish If StopWhenAbilityEnds is true, this montage will be aborted if the ability ends normally. | ||
| FDelegateHandle | InterruptedHandle | ||
| FOnMontageEnded | MontageEndedDelegate | ||
| FPlayAnimWaitSimpleDelegate | OnBlendIn | ||
| FPlayAnimWaitSimpleDelegate | OnBlendOut | ||
| FPlayAnimWaitSimpleDelegate | OnCancelled | ||
| FPlayAnimWaitSimpleDelegate | OnCompleted | ||
| FPlayAnimWaitSimpleDelegate | OnInterrupted | ||
| float | PlayRate | ||
| FName | SlotName | ||
| float | StartTimeSeconds |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | OnMontageBlendedIn
(
UAnimMontage* Montage |
||
| void | OnMontageBlendingOut
(
UAnimMontage* Montage, |
||
| void | OnMontageEnded
(
UAnimMontage* Montage, |
||
| void | |||
| bool | Checks if the ability is playing a montage and stops that montage, returns true if a montage was stopped, false if not. |
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 | Called when the ability is asked to cancel from an outside node. | ||
| FString | Return debug string describing task | ||
| 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. |