Not sure if this is posted in the right section, so feel free to bump me.
I have this neat little drone armed to the motherboard with two over sized miniguns of whirling destruction, BUT I have no idea how to get them to fire… What I want to do is make about 20 bullets (particles?) fly out in a randomly generated cone in front of the two barrels, muzzle flares would also be a huge plus, but not crucial at this time, the bullets would then die on contact in a shower of sparks. I would imagine this is one of the most asked things in here, but browsing around a little availed me nothing. If there is a tutorial out there anywhere I would be happy if you could point me in the right direction
I think that the first part of the first person tutorial is a good place to start. It gets into weapons and projectiles pretty quickly. And I think part 3 covers some AI.
@besuser, Thanks mate that tutorial helped alot, although the resources for it dont seem to work with Unity 2.0 I managed to make my guns fire tiny spheres of destructions ending their path in a blaze of glorious sparkling doom!
Still I have a hard time getting bullet trails, as it is now I have tried to mess around with particles, but it seems to emit over an area too big for the muzzle of the guns. I have looked at every little setting but cant seem to make the emitting point smaller… Also I cannot attatch a single particle strand to the bullets and give it the “draw velocity” look. Am I going about this the wrong way?
Tutorial updates (to work seamlessly with Unity 2.0) are on the way…
Have you tried using the Trail Renderer as an option? Select your bullet prefab then use Component > Particles > Trail Renderer. You’ll need to create a particles material but in general it’s all fairly easy to use and may get you exactly what you want (for little effort).
Thanks HiggyB, I have added the trails and I am now perfecting the look, starting to look good, just need to add some sort of auto fire and a slight variation in the trajectory of the bullets and I will be set