Event movement conditions based on eye contact?

OK, so in one of my projects, I have two on-screen encounters, but I want them to act like this (below), how would I achieve this?
The first one moves much like a Dr. Who Weeping Angel, where it can move, but only if you don't make eye contact. It cannot move when eye contact with the player is made.
And the second is kind of the opposite, where it basically wonders at random, but the moment the player makes eye contact, it will basically charge at the player.
How are you defining "eye contact" in this case?
@Trihan As in the event and the player are facing each other.
Okay, so a direct straight line without a cone LoS or anything. That simplifies things.

What range are you thinking in terms of tiles? 3-4 maybe? Or like right next to it?
Due to map sizes, around 10 tiles max
So the event would be able to "see" you from 10 tiles away?
Yes.
You can use Vlue's Proximity to do that
https://www.rpgmakercentral.com/topic/3230-proximity-events/
Specifically this one call:

Code:
 Proxy.inprox_d?(@event_id, distance, los)
@Ebanyle

So for the one who rushes, I would do something like this?
Spoiler
upload_2019-4-11_21-38-24.png

EDIT: It works for the rushing one if I put the script as a conditional branch. Just got to event a test for the other.
Ah okay, I was doing a native script solution for you, but if that works I won't have to. XD
Hmm, I think it's something like this! Going by the demo Vlue himself made, the setup would look like this:
Spoiler
Tl68VTq.png
Spoiler
MXJyhiB.png
Though I would recommend using a waaaaaaaay bigger value than 10.
@Ebanyle Thanks, I'll give that version a try in the morning when I have more time to work on the PC.

That worked! Thanks!
Thread closed IgnoreMe

Original thread: https://forums.rpgmakerweb.com/threads/event-movement-conditions-based-on-eye-contact.107864/