Quantcast
Channel: Questions in topic: "javascipt"
Viewing all articles
Browse latest Browse all 1875

How to fix ( ArgumentException: Input Button fire 1 is not setup)

$
0
0
I'm making a puzzle game with some fps elements so I made a gun recoil animation, and I think I made the script correctly. I parented it to the M9 and and added audio with the animation, but now it says there is no Input. So set the input to mouse 1 (I think that's left click) and it still gives me this error any ideas? ![alt text][1] [1]: /storage/temp/75548-error-part-4.png Script is here function Update () { if(Input.GetButtonDown("fire1")){ var gunsound : AudioSource = GetComponent.(); gunsound.Play(); GetComponent.().Play("GunShot"); } }

Viewing all articles
Browse latest Browse all 1875

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>