A region ID that will instant delete any event that lands/touches it [SOLVED with a script]

Hello, Im having some trouble with my parallax mapping, a map edge and some jumping events.
Events are jumping in different directions based on player actions. Sometimes when a event is dropping coin or jumping wild.
it jumps and land outside the map or over a hole in the map. I wish there was a way to instantly delete those events that touches region 6.

IF, this touches region 6 then delete did not work for me because then all my events need to have that check and it wont work for this setup.

I need the plugin to have this region 6, to check for visitors and then do one of the following.
1. activate selfsswitch D. OR 2. delete event.
use the move route section.
you can add a script call to check for that region in between block instructions, or outright code the whole movement through a script block.
How would you do that? Could you be more specific?
Do you mean like a parallel process running on the map say like this.
If any event == region 6 delete? How would you make the any event check?
At the end of your event's move route, after jumping:

Code:
Script: if (this.regionId() === 6) { this.erase() }
Thanks!!

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/a-region-id-that-will-instant-delete-any-event-that-lands-touches-it-solved-with-a-script.117221/