- Home /
Need Shooting C# script help
im trying to get a script so i can fire a bullet when i press 1 on the keybord and i want to make this in C# anyone have the script code for this there is no reload just each time i press 1 it fires and i can put in a cool down
Answer by NhommeBeurreOne · Jul 16, 2012 at 04:07 PM
Make a research on Youtube and/or Google : "Unity 3d Shooting Script Tutorial".
Answer by FLASHDENMARK · Jul 16, 2012 at 04:11 PM
Then learn raycasting. Here, and perhaps here
I don't know exactly what you mean by cool down. I am going to go with reloading.
For reloading use yield WaitForSeconds.
Done. The recipe for a basic shoot script. But for future rudimentary questions try Google first. More often than not it can tell you what to do. And it saves you the time it takes formulating a question and it saves us the trouble of answering it.
Good luck.
Your answer
Follow this Question
Related Questions
Trouble with script to fire a bullet from a handgun 1 Answer
My gun won't fire. ( Javascript ) 1 Answer
gun ammo script 2 Answers
Setting bullet instansiate direction? help? 1 Answer
Troubles With A Shoot Script 1 Answer