|
This is a very simple question but... can you give me a script so when i hit a key it shoots a certan game object. Thanks!!! (LEAVE INSTRUCTIONS!)
(comments are locked)
|
Try this, replace snowball with your game object. I am still trying to find out a better way:) what button is used to shoot???
Jul 09 '11 at 10:37 AM
buskins
Fire 1 is the left mouse button :( See the keys in the Edit> Player Settings> Input
Jul 09 '11 at 11:02 AM
Unamine
(comments are locked)
|
|
put A empty game object in front of your gun ( where u want to shoot from) and name it "spawnPoint" then attach this script: to the player, you can edit the fire rate, in the inspecter panel make sure to when it says prefab, add a game object there, such as a cube or sphere.
(comments are locked)
|
|
dont ask for scripts use the references and learn it yourself
(comments are locked)
|

Please mark Eric's answer right as it is perfectly correct and likely the only answer you will get. Also, don't ask for scripts. Ask for help with scripts you are making.
@killer1390, don't expect a reply/checkmark. Some posters are like pandas - "eats, shoots, leaves"...