BTStopAnimationο
Inherits: BTAction < BTTask < BT
BT action that stops the playback of an animation on the specified AnimationPlayer node.
Descriptionο
BTStopAnimation action stops the playback of an animation on the specified AnimationPlayer node and returns SUCCESS. If animation_name is set, it will only stop the playback if the specified animation is currently playing.
Returns FAILURE if the action fails to get the AnimationPlayer node.
Propertiesο
|
|
|
|
|
Property Descriptionsο
StringName animation_name = &"" π
void set_animation_name(value:
StringName)StringNameget_animation_name()
Animationβs key within the AnimationPlayer node. If not empty, BTStopAnimation will only stop the playback if the specified animation is currently playing.
Parameter that specifies the AnimationPlayer node.
bool keep_state = false π
void set_keep_state(value:
bool)boolget_keep_state()
If true, the animation state is not updated visually.