So I'm just about finished with a scene where enemy NPCs will chase the player in a certain range. I even created switches to where enemies will not chase players when in a shadow/dark part of the room. However, the enemy NPC will still try to follow the player's movement pattern and stand in place waiting for player to turn off stealth mode rather than going away, following a different walk path, etc. I've been on this for hours lol I think I'm definitely overthinking it, as I've tried to resolve this several different ways. Any suggestions?
MV What do I need to fix in YanFly Event Chase Player Plugin to keep npc from following player when in a shadow part of the room?
Javascript/Plugin SupportI'd recommend using Galv's Event Detectors plugin instead. Comes with multiple different behaviour patterns you can set up, you can just define a region that blocks line of sight (your shadows) and it even makes the event kinda "look around" for a second when they lose sight, before going back to their regular movement pattern.