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

ArgumentException: Input Button Firel is not setup. To change the input settings use: Edit -> Project Settings -> Input Shot Script.Update () (at Assets/Shot Script.js:11)

$
0
0
I have this problem : ArgumentException: Input Button Firel is not setup. To change the input settings use: Edit -> Project Settings -> Input Shot Script.Update () (at Assets/Shot Script.js:11) How to do ? This is my code : #pragma strict var bulletCasing : Rigidbody; var ejectSpeed : int = 100; var fireRate : float = 0.5; private var nextFire : float = 0.0; private var fullAuto = false; function Update () { if(Input.GetButton("Firel") && Time.time > nextFire){ nextFire = Time.time + fireRate; var bullet : Rigidbody; bullet = Instantiate(bulletCasing. transform.position, transform.rotation); bullet.velocity = transform.TransformDirection(Vector3.left * ejectSpeed); } if(Input.GetKeyDown("v")){ fullAuto = !fullAuto; } if(fullAuto == true){ fireRate = 0.10; }else{ fireRate = 0.5; } }

Viewing all articles
Browse latest Browse all 1875

Trending Articles



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