Don't know how to make NPC's always know where the player is

I need a little help.

I’m trying to make the SNPC always know where the player is (instead of having to wander for them or have them in their line of sight) but I’m not sure how.

Anyone care to help?