Hitting Particle System

I am trying to make the player do an animation when it hits a particle system which is tagged “enemies” but it is not working. this is what i have in the player logic script:

    void OnTriggerEnter(Collider col)
    {
         if (col.tag == "enemies")
         {
            Debug.Log("Collided with particle");
            anim.SetTrigger("Hit");
               

         }

    }

Hello.

Check this out for using Particle Collisions: Unity - Scripting API: MonoBehaviour.OnParticleCollision(GameObject)
Also, I would use col.CompareTag(“enemies”) as it doesn’t cause GC allocations

i did look at that and it still doesnt work

Not sure because I stopped using particles for collision checks a long time ago, but IIRC they don’t work with triggers, you must use a Rigidbody. Make sure your layers are set up correctly, and make sure you have a collider on the player. Also make sure you actually set the tag. I forget stuff like that all the time. :stuck_out_tongue_winking_eye: