So I'm making an FPS shooter and I have an animation that should play and loop. I have two problems here: 1. If I hold the mouse button, the animation loops only if I move the mouse, If I do not move it and just hold the mb, the animation plays once and stops. 2. If I set the animation to loop, when I stop holding the mb, the animation stops but it doesn't stop at the beginning, it stops when I stop holding it. Eg: If the weapon is facing up and I let go of the mb right at that time, it stays there. An idea that I have is that of reversing the animation and waiting for it to reach the point where the weapon is facing the horizon line but I don't know how to do that. Please excuse my english skills.
Help