void OnTriggerStay(collider col)
{
if col.tag == “player”
{
Debug.log(“A PLAYER IS NEAR!”)
}
}
OnTriggerStay is called every time the object moves inside of the trigger(It works funny, look up my questions to find a fix for a non-moving player), collider col is the collider of the object inside of the sphere’s trigger. col.tag is the tag on the object the collider is attached to, which, most likely will be player. Debug.log is simply for showing that it works.