- Home /
Stop all animations
how do i stop all animations?, in my case when is reloading i want to stop all animations for 2.5 seconds, cause it looks weird that my gun still looks like its shooting while its reloading
Just write an if statement which checks if shoot animation is done. http://docs.unity3d.com/Documentation/ScriptReference/Animation.IsPlaying.html And let it reload only when shoot animation isn't running.
Answer by jg2115 · Aug 19, 2013 at 02:41 PM
To stop all animations you can use animation.Stop();. I don't know how you want to incorporate waiting, but you could use WaitForSeconds. If you want a more specific answer you should probably post your script.
Your answer
Follow this Question
Related Questions
Wierd rotations in very simple reload animation 0 Answers
C# animation script for reloading a gun 3 Answers
Problem with animations(noob question i guess) 1 Answer
Switch Weapon Script Not taking effect HELP!! 2 Answers
My machine gun code steels my clips 4 Answers