- Home /
Seting Fire Up as a attack
What do I have to do to take a fire particle system and make it able to be fired by the player and destroy objects?
Answer by Seth-Bergman · May 01, 2012 at 04:53 PM
a particle system can be attached to any GameObject.. to be able to fire said game object, use Instantiate:
http://unity3d.com/support/documentation/ScriptReference/Object.Instantiate.html
To destroy the object hit, you would use OnCollisionEnter or OnTriggerEnter:
http://unity3d.com/support/documentation/ScriptReference/Collider.OnTriggerEnter.html
I suggest looking over the getting started tutorials, probably would answer some of your questions
Your answer
Follow this Question
Related Questions
About trigger 3 Answers
Attacking enemys 2 Answers
Multiple player attacks 4 Answers
Need help with 2D Attack, attacking in every direction 0 Answers
How to stop enemy within certain distance of player? 2 Answers