- Home /
Character wont stay aiming
So i have an aiming animation and made it a bool in the animator. I have the bool being set to true when "Fire2" is pressed. But my character does the animation and then puts the gun back at the idle position. PLEASE HELP! TY
My script:
private void Update(){ // Animations
bool aim = (Input.GetButton("Fire2"));
bool WalkorRun = (Input.GetKey(KeyCode.LeftShift));
anim.SetBool("Run", WalkorRun);
anim.SetBool("Aim", aim);
}
The Animator Setup(The state to the top left is the aim state and animation):
screenshot-3.png
(169.8 kB)
Comment
Your answer
Follow this Question
Related Questions
FPS Bow Animation 0 Answers
Animator slowing down my game 0 Answers
Aiming Gun at Cursor 2 Answers
I cant aim Can anyone HELP? 0 Answers