|
Hello everybody! I am looking for a script that allows my players to put out fire. I am going to use it for a multiplayer game. Please help!
(comments are locked)
|
|
OK now that we have the information you can use this: http://docs.unity3d.com/Documentation/Components/class-WorldParticleCollider.html that you place on the water. Read it through to know what to do (exemple, enable Send Collision Message) Then Add a collider box to your fire, tag your particle system with Fire_tag (or else) and you should be good to go. P.S: I do not have Unity to try it so I might have missed a detail... Thanks worked!
Jul 14 '12 at 05:07 PM
riekelt
(comments are locked)
|
|
Colliders will do it. I dont know how the fire and the water will be featured in your game, but basically you could add a collider to the fire prefab and check if it is hit by water. If you use colliders or cast a ray, sphere or whatever against it depends on how youre going to implement it of course. Then, if hit, simply destroy the fire object and the fire is out.
(comments are locked)
|

Your particle syste, is an object so you can destroy it like any others.
But how do i detect if my water hits the fire?
What is your water made of? Is it a particle effect too or a more primitive shaped object? Then you would have to detect collision and destroy the obejct.
Its the standard particle effect.