|
I have top-down shooter (Something like dead frontier) and i want to make a flamethrower but i dont know how so please if you know how then please help me. I know i have to have a particle emitter but i dont know how to make the scripts. I have a basic gun that shoots and i used this script:
(comments are locked)
|
|
You are absolutely correct that you need a particle emitter for this :) Lets take a look at it together, but you need to finish it yourself.
Hope this helps you on your way :) Okay, I give up. The code formatting on Unity Answers is like dancing with a elephant that insists on stepping on your feet.
Dec 28 '10 at 06:42 PM
Ejlersen
Thanks alot man this helped out alot :DDD
Dec 28 '10 at 09:44 PM
mido555
Glad that I could help :)
Dec 28 '10 at 09:45 PM
Ejlersen
Hey man i got to the scripting part and i got this error: Assets/FlameThrower.cs(13,23): error CS0411: The type arguments for method `UnityEngine.Component.GetComponent()' cannot be inferred from the usage. Try specifying the type arguments explicitly sorry if this is annoying but i am a complete newbie and i dont know very much about anything in unity. (I do know the basics i had unity for about 2 weeks now)
Dec 28 '10 at 10:09 PM
mido555
No problem. You can use a box collider for doing damage, which you can turn on/off. Try setting as trigger and use the OnTriggerStay(). If an enemy is within the trigger, then do some damage.
Dec 30 '10 at 01:45 PM
Ejlersen
(comments are locked)
|
