How can I activate a Particle system using a box collider as a trigger

Ive been developing a small mini game where you fly around as a bird pooping on people. I have a prefab called poop which drops downward on the y axis it has a sphere collider attached to it and a rigidbody.
I have made a particle system the child of a character who walks around the map the particle system has a box collider which i set as trigger. Now i cant figure out how to make the particle system play when the poop prefab hits it,… Can anyone help me pls

Have you tried OnTriggerEnter()?

void OnTriggerEnter(Collider other) {
    GetComponentInChildren<ParticleSystem>().Play();
}

Try this out:

 void OnTriggerEnter(Collider other) {
    	if (other.tag == "character") {
    		GetComponentInChildren<ParticleSystem> ().Play ();
    	}
    }

set your character tag to “character”.
this code is attached to the character.