unreal.BTTask_PlayAnimation

class unreal.BTTask_PlayAnimation(outer: Object | None = None, name: Name | str = 'None')

Bases: BTTaskNode

Play indicated AnimationAsset on Pawn controlled by BT Note that this node is generic and is handing multiple special cases, If you want a more efficient solution you’ll need to implement it yourself (or wait for our BTTask_PlayCharacterAnimation)

C++ Source:

  • Module: AIModule

  • File: BTTask_PlayAnimation.h

Editor Properties: (see get_editor_property/set_editor_property)

  • animation_to_play (ValueOrBBKey_Object): [Read-Write] Animation asset to play. Note that it needs to match the skeleton of pawn this BT is controlling

  • ignore_restart_self (bool): [Read-Write] if set, task search will be discarded when this task is selected to execute but is already running

  • looping (ValueOrBBKey_Bool): [Read-Write]

  • node_name (str): [Read-Write] node name

  • non_blocking (ValueOrBBKey_Bool): [Read-Write] if true the task will just trigger the animation and instantly finish. Fire and Forget.