checking if event facing player

Hello, is there a script call to check if an event is facing the player? Im using some proximity event sensor scripts, but I have an issue because I only want the event to trigger if its facing the player. I know you can check to see if an event is facing up,down,left,right, but I need it to know if its actually facing the player.
See if this works for you. Read plugin help before.
How to access the event's current direction via script call
Code:
$gameMap.event(this._eventId).direction()

How to access the opposite direction of the player's current direction
Code:
$gamePlayer.reverseDir($gamePlayer.direction())

Solution
Within a conditional branch, test these two for equality
Code:
$gameMap.event(this._eventId).direction() === $gamePlayer.reverseDir($gamePlayer.direction());

If the comparison returns true, it is implied that the two are facing one another.
thats awesome thank you
So .direction means the way its currently facing and .reverseDir is checking what exactly, the position of the events backside? What would be the call for checking the side, .sideDir?

Original thread: https://forums.rpgmakerweb.com/threads/checking-if-event-facing-player.83802/