Enemy line of sight

Is there a way to make an enemy attack or catch you when they see you in their line of sight? The idea I have is that I want the main character to sneak in a building without getting caught by anyone inside, like by a dog or a guard. Sorry I'm a noob at this. I'm sure there is a way to do it or a plugin. Please and thank you 🙂
Back when I was using VX Ace you could check line of sight with just events if you were skilled enough with it. Afaik the same functionality is there in MV but you'd need to take some time to track it down yourself as I'm not sure where it is or if anybody has taken time to document it. Honestly a much easier method would be to find or commission a stealth script with the features you want in it.


The VX Ace tutorial can be found HERE if you're interested, see if it's any help 🙂


Edit: Here's a stealth script I found with a quick google search. Maybe that's what you're looking for?
The MV master script list is here:http://mvplugins.com/master-list


2 line of sight plugins: http://mvplugins.com/plugin/Soul/Event%20Distance%20Sensor


http://mvplugins.com/plugin/Galv/Galvs%20Event%20Detectors

Original thread: https://forums.rpgmakerweb.com/threads/enemy-line-of-sight.70509/