How to start all particle systems that have the tag steam

Hi, so what needs to happen is when the player walks into my trigger box it starts all the particle systems with the tag steam. The script is on my trigger box, and at the moment I just have public ParticleSystem, to find the particle systems. Thank you.

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class steamtrig : MonoBehaviour


    public Transform player;
    public ParticleSystem steam;
    public ParticleSystem steam2;

    // Start is called before the first frame update
    void Start()

    // Update is called once per frame
    void OnCollisionEnter(player)
        steam.GetComponent<ParticleSystem>().enableEmission = true;
        steam2.GetComponent<ParticleSystem>().enableEmission = true;
        player.GetComponent<FirstPersonAIO>().enabled = false;

you can’t use void OnCollisionEnter(player) you have to define a variable parameter in there not supply one. Also OnCollision is a build in call back so you have to define it the same way unity does. void OnCollisionEnter(Collision collision) is the correct method. Then when there is a collision you check to see if it is the player, you don’t need to create a reference to your player. You would check if it’s the player you are colliding with 1st, if(collision.gameObject.CompareTag(“Player”)) it looks like you reference the steam particles so you shouldn’t have to check the tag. Only the particles you assign to the references will start. After you setup the parameter correctly you will change this line: player.GetComponent().enabled = false; to collision.GetComponent().enabled = false; the variable collision will contain a reference to the object that was collided with.