Check if Event is on screen/visible?

I remember a script for this in a past version of RPGMaker (though which I can't remember). But this would specifically be for RPG Maker MV.

Basically, the script I remember would check if the event was in the same visible screen space as the player, and if it was not visible, it would run an event or flip a switch [EDIT: Actually it was a conditional true/false, I'm sorry, should have been clearer]. An example of this would be an object that disappears once you can no longer see it, or a npc that turns into a werewolf when you're not looking, etc.

Is there a built in command for this, or a plugin I missed while searching? I know this could probably be manually done by checking how many x/y squares the player is away from the event, but that's feels like it would be very fussy in comparison. I suppose maybe this could be jury-rigged using an event detection system to check how far the player is too, but again, that feels fussy. In the end I'll make do with what I have if that's what it comes down to, but if someone knows an easier way to pull this off I'd be very appreciative.

Thanks.
I'm not sure I understand exactly..

You want a pluggie that checks to see if you um, are so many tiles away and it causes an event to fade out of site after so many tiles away?
Sorry for being unclear, I realize I should have put this in a different way:

Not necessarily fading an event but... a true or false sort of conditional? "Is event on screen? If false, then ___". I should have described it like that in the first place, not sure why I didn't.
If a visual example helps-



And then when the player moves, and the camera viewport moves with them-
I suppose it's been long enough to bump this.
Sorry for being unclear, I realize I should have put this in a different way:

Not necessarily fading an event but... a true or false sort of conditional? "Is event on screen? If false, then ___". I should have described it like that in the first place, not sure why I didn't.
If a visual example helps-



And then when the player moves, and the camera viewport moves with them-

Fast explanation in the picture attached

giacozama, please refrain from necro-posting in a thread. Necro-posting is posting in a thread that has not had posting activity in over 30 days. You can review our forum rules here. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/check-if-event-is-on-screen-visible.96945/