I'm looking for a mechanic that (Using pathfinding and Line ofSight) allows the player Unit to follow an NPC wherever he goes but from a distance.
like in this video
he follows the other Unit while shooting at him at the same time when within lineofsight. Once line of sight is lost, unit stops following.
How can I achieve this?