joker71
1
I am currently working on an FPS game and it is going pretty well but i have a problem when i want to switch weapons. When im am pressing the button to switch to the second weapon while the first one is playing the reload animation (or vice versa), all of the animations of the first weapon doesnt work anymore when i am switching back to the first weapon.
THIS IS THE SCRIPT:
And The Problem itself:
This Is a what happens to the gun when i am trying to switch while the reload animation is playing. The gun is actually stuck in the middle of the animation and it is not playing any animation now.
It only happens to me with the reload animation, when I am shooting on full auto and switching to the second weapon while it’s still shooting it works just fine.
Any suggestions?
It might be a bit late but what you can do is:
private void OnDisable()
{
fireAnim.clip.SampleAnimation(GameObjectThatHasTheAnimation, 0f);
}
sjos
3
Also a bit late, but perhaps try and check the box that says exit time to the transitions going out of the reload animation.