WoW:API FollowUnit

FollowUnit("UnitID")

Can only follow allies