- Home /
click shooting how do i do it?
made a FPS pritty good i think anyway, i've made it shoot by pushing space, how can i make that shoot at a click? thanks for answering, assuming u answered. ;)
ah brilliant andyh81 thanks again 4 answering it worked perfectly accept is there a way i can now make it also jump??? thanks 4 ur time ;)
Answer by ThumbStorm · Sep 13, 2010 at 07:26 PM
Just replace the space bar input command with
if(Input.GetButtonDown("Fire1")){ Shooting code here }
Fire1 is the same as left mouse button and fire2 = right mouse.
Assu$$anonymous$$g you haven't customized with the input panel in the inspector.
Your answer
Follow this Question
Related Questions
FPS rigidbody bullets not moving to center of screen 0 Answers
Problems with a shooting script 1 Answer
Make that muzzle flash? How? 1 Answer
Can't shoot towards mouse click point 0 Answers