MV Detect if event is within region?

I'm looking for a way to get an event to trigger based on whether a different event is currently within a region. Like this: http://www.yanfly.moe/wiki/Region_Events_(YEP) but for other moving events and not the player. Is there a bit of script I could pop into a conditional branch to search for this?
A quick search and that's it:

Javascript (RMMV API):

Good lucky 😀

Original thread: https://forums.rpgmakerweb.com/threads/detect-if-event-is-within-region.182169/