NPC Follow a character on patrol

Hi, is there any way I could use A*Pathfinding to control an NPC that just follows a player character?

My player character is currently just being controlled by the patrol script so it isn’t controlled by a user. So once in runtime the player character just moves between patrol nodes.

So Im looking for a way, in addition to what I have in place already for an NPC to follow the character walking between patrol points.

Any suggestions gratefully received.


Sorry for the late answer.
I would use a script that sets the destination propert of the agent to some point at a fixed offset from the player every frame. So for example the NPC could get its destination set to a point 2 meters to the right of the player, or something like that.

Sounds perfect. Thank you for your time.