i have a very simple code that looks like this
private void OnTriggerExit(Collider other)
{
other.gameObject.SetActive(false);
GameObject.Find("GameController").GetComponent<GameController>().playersalive.Remove(other.gameObject);
}
the problem is that the gameobject doen’t get deactivated on the host, altho every player has the gameobject and the collider that this script is attached to.