unreal.BTTask_PlayAnimation¶
- class unreal.BTTask_PlayAnimation(outer: Object | None = None, name: Name | str = 'None')¶
Bases:
BTTaskNodePlay 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 controllingignore_restart_self(bool): [Read-Write] if set, task search will be discarded when this task is selected to execute but is already runninglooping(ValueOrBBKey_Bool): [Read-Write]node_name(str): [Read-Write] node namenon_blocking(ValueOrBBKey_Bool): [Read-Write] if true the task will just trigger the animation and instantly finish. Fire and Forget.