|
ok im trying to make a rocket shoot out with this script when i click right click ( fire 2) but my version wont work it only happens when i left click. how do i instantiate this script when i click fire 2
(comments are locked)
|
|
Try: this does help but it still shoots when i left click
Jun 29 '10 at 04:33 AM
james 1
oh and i made an account called bytyan
Jun 29 '10 at 04:33 AM
james 1
Sounds like somewhere in one of your scripts, you still have a method that takes an Input.GetButtonDown("Fire1") condition. Just remove that code
Jun 29 '10 at 05:36 AM
Deikkan
(comments are locked)
|
|
Check Edit -> project settings Input for what key you have for Fire1 And use this line: if (Input.GetButton ("Fire1")){ Shoot();}
(comments are locked)
|

You're probably using web player, try it in stand along
no im not using a web player i just want that script to start when i right click
i know that if(Input.GetButtonDown)) {} has to be in there but where and how