No problem with using pathfinding and LOS, I am referring to using LOS and a distance check. Maybe by distance you meant when they are out of range of LOS so it's the same thing? Then yes it should work, you can say when enemy does not have LOS of the player, Stop pathfinding. Feel free to post a screenshot of those events.