NPC go for the player

hi, i would like to know if it’s posible the an npc goes for the player but not in a straigth path, i want it to do a small zigzag, to do the player more difficult to attack it. thanks