Hi I am trying to make a firefighter game where I use the water fountain asset to put out the flame asset. I want the flame to be put out once the fountain hits the flame. I already scripted the fountain to emit and not emit when i press a button. But i need the fountain to make the flame stop emitting. I could use some help. I have no idea where to start with this. Thanks for the help.
On the fountain particle emmiter you need to add a 'world particle collider’ component and make sure ‘send collision message’ is ticked and that you select the layers it collides with in ‘Collides with’
Then on your fire prefab script you detect the collisions with the water emitter and do whatever you want:
void OnParticleCollision(GameObject other)
{
// put the fire out
}
Oh thanks a bunch m8