In an AnimationTree, if you need to replay a one-shot animation state without transitioning through an intermediate state—such as an attack animation interrupted by a second attack with the same animation state in the tree—how would you achieve this?
I haven’t found any straightforward methods without resorting to unconventional hacks, which makes me wonder if I’m approaching this the wrong way.
func die() -> void:
var playback = animation_tree.get("parameters/locomotion/playback") # "locomotion" is my AnimationNodeStateMachine
playback.start('death')