Hello, I have a enemy "Mine" type character, Could someone be kind enought to send me a script to "Kill" or Blow it up as soon as it colides with me (The player) Thankyou for your time.
Answer by Pirate___man
Jun 20, 2010 at 03:42 AM
The explosion should be made completley with the particle system. Then you you script it so the object blows on contact and removes itself from the scene. A great example is on the unity website in the tutorial section. Click on the FPS tut and read it through. There is also a premade explosion in the standard assets in the particles section. Hope this helps!!!
Answer by qJake
May 31, 2010 at 09:22 PM
Noone will "send" you a script, this is UnityAnswers, not UnityFreeCommissions. Here's how you can set it up yourself:
That will cause a fairly large explosion to take place when someone walks too near a mine.
Answer by GODLIKE
May 31, 2010 at 07:36 PM
This is almost like asking around if somebody can write the game for you.
That's not so easy. You need to make in example some particles for the explosion.
After that a script that when the mine collides with the character, it transforms in the particles object.
So at least now you can make that BOOM object with particles now!
And later come back and ask how to make a script that transforms an entity into another one when it collides with the character :)
Did this make any sense to anyone?
Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.
The best place to ask and answer questions about development with Unity.
If you are a new user, check out our FAQ for more information.
If you are a moderator, see our Moderator Guidelines page.
We are making improvements to UA, see the list of changes.
For troubleshooting common problems with Unity 5.x Editor (including Win 10).
To help users post good questions and use the site effectively we have posted a user guide. Please check it out.
Answers and Comments
No one has followed this question yet.
can someone come up with a script that makes a game object explode and destroy itself on impact with the first person controller
Bullets wont collide and destroy object
sample of AI enemy collision
Spawning explosions and detecting objects in range
Shuriken Explosion Example - Collision