Collision problems with a particle system

[SOLVED]

I’d like to know if you can make a particle system (fireball) stop when it hits walls. I’ve tried putting it into a prefab together with a cube that has a box collider or adding Rigidbody to everything. Not even the box stopped. I was thinking of using this script for the fireball:

function OnTriggerEnter(other : Collider) 
{ 
 Destroy(gameObject); 
}

But If I mark “Is trigger” on all of the walls to get the script to work, the player suddenly gains the ability to walk through walls. I have no idea if this script even works or how to get this to work. Please help me!

Thanks in advance,
Redoxe

I think you need to be looking at a ParticleCollider

Thanks, one step closer to making it work.

I get the option to temporarily lower the energy of the particle system but what I want is for it to stop completely. I’m assuming that this can be done with scripts, how would I be able to do this?

Problem solved! I selected “One-shot” and “Autodestruct”. It not properly gets destroyed when it hits walls.