This question was
closed Jul 25, 2017 at 10:32 PM by
badboy12831 for the following reason:
I found it out on my own
Question by
badboy12831 · Jul 25, 2017 at 09:50 PM ·
gun-animation
Cant get kickback animation to work
I'm making a simple FPS game and i need the gun to kickback when the left mouse button is pressed. This is what i have to play the animation...
function Update () {
if (Input.GetButtonDown("Fire1")) {
GetComponent.<Animation>().Play("GunShot");
}
}
Any help is appreciated!
Comment
Follow this Question
Related Questions
Animation Code Problem 2 Answers
*Animation Error Help* 1 Answer
Help With Recoil Script 0 Answers
Script creating glitchy movement 0 Answers
Need help with blend tree animation for a gun (VR) 0 Answers