Just check with a certain frequency if your npc can see the player (via line traces) and if not record the player’s location in a vector and make your npc go there.
Just check with a certain frequency if your npc can see the player (via line traces) and if not record the player’s location in a vector and make your npc go there.