Skip to content

FPTask_PlayAnimation.h

File Info

FileName: FPTask_PlayAnimation.h

UFPTask_PlayAnimation

Parent Classes: [ UFlowPilotTask ]

Task that plays an animation

  • Will play the animation to one or multiple Pawns found via FlowActorReference
  • Option to wait for animations to complete before succeeding

Properties

// Pawns to play animations on
UPROPERTY(EditAnywhere, Category="FlowPilot")
FFlowActorReference ActorsToPlayAnimationOn;
// Animation Asset to play
UPROPERTY(EditAnywhere, Category="FlowPilot")
TSoftObjectPtr<UAnimationAsset> AnimationAsset;
// if true, will loop animations
UPROPERTY(EditAnywhere, Category="FlowPilot")
uint8 bLooping : 1;
// if true, will wait for animation to finish before succeeding task
UPROPERTY(EditAnywhere, Category="FlowPilot")
uint8 bWaitForAnimationEnd : 1;