Npc walk

How to make an npc walk with the back to a point? from x to y

as in this video look at the goblin from 12:02 to 12:06

https://www.youtube.com/watch?v=5rI3rFDp1xY#t=720