Yanfly's 'event chase player' script problem i would like help with

hey guys, I have a problem. It's not the script though, I just can't figure out how to set up what i want and would like some help.

basically i'm trying to set up an event to react two different ways depending on how the player interacts with it. in this case It's a 'watch guard' event. So the Guard NPC just stands there doing nothing until your X number of units away then he gets alerted and runs over to to you triggering battle. Easy enough, i did that with the awesome Yanfly script no problem. however, I want it that if the player goes behind the event and interacts with it the event then just erases itself after playing a death VFX.  so to different behaviors dependent on event orientation to player when triggered.  

any clue on how to do it? 
This might be a couple months old, but I too am curious about this and hopes someone can help the OP and myself...

Trying to make it so by default they're alerted 4 tiles away, or if the player is sneaking (i have a switch) then make it 2 tiles away. I don't mean anything by necroposting or hijacking 🙁 I just hope to help raise awareness to this thread as I too am looking for the information as the OP (how to react to different situations using this plugin)!
So what you want to have is an event that has a sensor?

Original thread: https://forums.rpgmakerweb.com/threads/yanflys-event-chase-player-script-problem-i-would-like-help-with.49230/