Shuriken system - collision

Hi, i bet the answer to my problem is really simple and it will make me feel stupid. I did check through google, i did try what i found in previous Unity threads and yet i can’t pull this simple thing off.

I have a fire particle system and i just want my player to get damaged when passing through it. I have collisions and sendcollisionmessage enabled in shuriken, i have it set to only interact with my player’s physics layer and at first i just had a script on the fire particle. (even tried putting in on the player).

function OnParticleCollision(hit:GameObject){
death function here from gameObject;
}

I also did check the documentation and tried that as well but nothing. So i must be doing something really dumb.

The particle system doesn’t have a collider component.
An Object must have a collider component to register in OnCollision…

Also I’m no specialist with functions but I think you wrote your function wrong,

If you want instant death when in contact with particles OnTriggerEnter would be ideal, it activates whenever something is walked through. OnCollisionEnter is for solid objects, and it activates whenever the outside boundary has been touched.

In short I don’t think you can use the actual particles as triggers or collisions, you will have to improvise and use invisible triggers and make it so that they appear near the particles, or something of that sort - be creative!

see OnTriggerEnter for more info
see OnCollisionEnter for more info

The particle system does indeed collide either with the whole world or planes of collision, and there is a function OnParticleCollision documented, exactly for doing something when your object collides with particles. (Or when particles collide with a gameobject).

See Unity - Scripting API: MonoBehaviour.OnParticleCollision(GameObject)

anyone? It would really help to do it with particles.