MZ Cone of Vision for Guards

Hi, I'm new.

I'm looking for a way to give Guards a cone of vision (like e.g. in Desperados 3 479463218.jpg). If the player enters the cone (= is seen by the guard) a event should trigger.

I searched a while and it looks like this is a common request. I found some solutions for RPG Maker MV, but non for MZ :-(

Is there any solution that works with RMMZ?
I think ocram has a plugin for that [Ocram_Lights] the link links to
the MV version, but it has a light detection in the image, if that is
what you need, he has a MZ version of it as well.

otherwise, [this] might work too (for MV) but not sure if it works in MZ
that simply check if the player is in range or not 🙂
Thanks, Ocrom_Lights is working great 🙂

Original thread: https://forums.rpgmakerweb.com/threads/cone-of-vision-for-guards.135858/