Line of Sight Aggro Radius

So I'm trying to implement a line of sigh mechanic for battle initiation similar to Pokemon. However, I'm having trouble figuring out how to implement this if the enemy is roaming around on the map, changing directions, and so forth.

I've considered the following plugins:
  • YEP_EventProxActivate
  • YEP_EventHitboxResize
  • YEP_EventRegionTrigger
How would I go about doing this? Or which of these plugins would aid me? Each one of these I've tried has a flaw for my purposes imo. YEP_EventProxActivate can't do a line that only goes in 1 direction. When I tried YEP_EventHitboxResize the enemy simply didn't initial battle. YEP_EventRegionTrigger wouldn't work if the enemy is moving around.

I also have YEP_EventEncounterAid if needed, but not sure if it'll help.
Line-of-sight is a specific mechanic that involves checking for obstacles on the line between two points, so basic proximity/area checks generally won't suffice... 😅

Check out this plugin~
Sweet, looks promising. Thanks!

This one is also quite fantastic.
@ImaginaryVillain Thank you, that one looks good too, but I just got Galv's version setup, and it's working absolutely fabulously. If I were using QMovement I'd probably go with your recommendation, but alas I am not. Combining LeTBS with LoS to have a tactical battle system on the same map as the exploring map has been a dream come true!😤
Fair enough, though it doesn't actually require QMovement. Galv's one is pretty good too though.

Original thread: https://forums.rpgmakerweb.com/threads/line-of-sight-aggro-radius.123168/