Event action

hello, I have a doubt, I want to make an event jump to a certain address if it is in x and coordinates, I have achieved this through the script command:

$ gameMap.event (N) .x === N && $ gameMap.event (N ) .y === N

but I want to make this action be imposed when the event or enemy is looking at a specific direction so that you can access the protagonist easier.
'Tech Support' is for when you cannot get the engine itself to run. "How do I...?" (implementation) questions belong in the support forum for the engine you are using.

Moved to: RPGMaker MV

Original thread: https://forums.rpgmakerweb.com/threads/event-action.105088/