I want to create an object in the scene so that whenever the object is out of the player’s field of vision an event starts and whenever the player is looking at the object the event stops
I found something similar, but it is done with enemies, and I would like to do this for any object in the scene