populateRoute() Function Reference

populateRoute(string character, integer xFrom, integer yFrom, integer xTo, integer yTo, string sequence, integer speed[, function callback])

Finds a path between two tiles and populates the movement queue of a particular character with that path. Can be called directly, but usually you'd just use moveCharacter() for simplicity.