How restart an attack in the middle of a attack

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Shark_Br

Hi
I’m using the famous example Make an Action RPG in Godot 3.2 from HeartBeast.
Video Series
I would like to start a new attack if in the middle of a attack the player press the attack button.
He uses state machine for the animation.

Code on the PasteBin

The AnimationTree

I have tried a lot of commands but any have worked so far.
Any help would be very appreciated.