- Home /
FPS Weapon Animation Mixing
Hi,
I have two animations, one for firing a weapon and one for "drawing it" / looking down its sights. I would like to be able to blend/mix the two animations together so the player can aim while firing or vica versa but I am unsure of how to do this.
Its important to note, the animations are very simple, the firing only affects rotation and the drawing only affects location. Which is why I thought it might be possible.
Thanks
Answer by magma6770 · Mar 05, 2015 at 01:29 AM
You may want to do something like this:
if (Trigger == ?)
{
PlayerAnimSec.animation.CrossFade("NameOfAnimation", 0.4);
}
The PlayerAnimSec.CrossFade is VERY Important and if you want it to be more smooth/less smooth. Raise/Lower the 0.4 (It's just my preference).
Your answer
![](https://koobas.hobune.stream/wayback/20220613094723im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Weapon Switch Animations 1 Answer
FPS game walk animation script help 1 Answer
FPSController Collision with moving objects 2 Answers
force player to crouch when under an object with collisio 2 Answers
Fps animations 0 Answers