Hello, I am making a 3D shooter and trying to make gun fire animation on the player model play everytime the player presses the fire action. More specfically I want it to reset the animation every time it is pressed and start from the beginning again. I achieved this with the AnimationPlayer by doing:
Giving me the exact effect I wanted.
Since my animations have begun getting more complex and context oriented, I moved over to using the AnimationTree, assuming I could use the OneShot to do the same thing. But I haven't been able to recreate what I did with the animation player.
I tried doing:
But it still seems to play the full OneShot animation and doesn't interrupt it and restart. I tried using a seek node attached to the animation, but still not avail. The closest I've gotten was turning the AnimTree's active parameter on and off, but that cancels all other animations and blends so it was far from the optimal behavior I wanted.
Does anyone know a way to do this with the AnimationTree?