I need to create a parallel event that checks if the Player is facing a certain event.

There is a brief portion of my game where the player needs to shoot at an enemy that is approaching them. The shot will only land if the player shoots while they're looking directly at the enemy event, with the distance between them not being a factor.

Ideally it would look something like this:

Check if "Enter" is pressed
Play "gun shot" SE
If: "Player" is facing "event-name-here"
>Play "enemy shot" event
Else:
>Nothing

I would like to know how to accomplish this, ideally as simple as possible. There is a "Player facing" option in the conditional branch settings, but it conveniently doesn't include events, just simple directions.
Hi there!

I made a little event for you. I know you said that the distance between the player and event was not a question, but I need to at least check if the event is visible on the screen.
If the player is facing an event, the event id will be stored in a variable. So you can do it whenever you want.
Take a look:
Spoiler
9AIvhy4.png

I also did a little plugin that can help you out on this. So you can use it that way, instead of the above event:
Spoiler
NUF5HaT.jpg
This works exactly as I wanted it to. Thank you very much! And of course you will be listed properly in the credits. Hopefully someone else can get some use out of this plugin too.

Original thread: https://forums.rpgmakerweb.com/threads/i-need-to-create-a-parallel-event-that-checks-if-the-player-is-facing-a-certain-event.140149/