I found this demo fairly useful. An effect like this could be used for any number of things. Other demos about npc movement that are useful to look at would include "Stop Following" and "Follow Me" by David Whyld.