MV - Conditional Branch that controls if the mouse input = position of event

Hi guys!
I made an event which follows the player around the map (like re2 mister x).
I want the player to be able to stop this event for a minute (by shooting him 5 times) before it starts to follow the player again.

The problem is I can't get the mouse input and the event position right.
I made this in a parallel event: (1 is the event that follows the player)
foto1.JPG

if you could help me with this issue that would be great 🙂
Thanks 😉
You could add in this event 1 a second page where it stop moving and activate this second page with a self-switch "A", then inside your seconf "if" (se) make that self-switch ON.

Code:
var key = [$gameMap._mapId, 1, 'A']; // map id, event id, self-switch
$gameSelfSwitches.setValue(key, true);

Original thread: https://forums.rpgmakerweb.com/threads/mv-conditional-branch-that-controls-if-the-mouse-input-position-of-event.132886/