play particle effect upon collision

i want to create a particle system that only play when my player object collides with other stuff, how would i go about this? ive tried to put an empty gameObject that contains a particle system underneath my player but now the effect also plays whenever i play the scene.

Turn off “PlayOnAwake” on your particlesystem, then call .Play() on it from your collision-code.

It’s all there in Junior Programmer Pathway.

1 Like

This doesn’t seem to work with child objects. If I turn off PlayOnAwake for one child object particles, it turns it off for the parent and all other children. I have the muzzle flash, the projectile particles, and the hit particles as children of the projectile. I want the muzzle flash and projectile to PlayOnAwake, but the hit to play on a collision. With PlayOnAwake, it’s all or nothing.