I was told to ask this in the lua section so here I go:
Makes npcs follow other npc or players.
Left click on the npc you want to follow and then left click on the one you want followed.
Right click on the npc you want to follow you.
Theres no limit to how many follow you.
There could be different formations such as they walk beside you or in a line behind you.
That seems to make a dog follow you so maybe some of its code could be used.
(User was banned for this post ("Wrong section" - mahalis))