actor.setRunning();
if ((actor.getDistance(target) < 100) || (currentState == 0) || (currentState >= coords.length))
{
if (currentState < coords.length)
{
actor.moveToLocation(coords[currentState][0], coords[currentState][1], coords[currentState][2], Rnd.get(0, 50), true);
if (actor.getDestination() == null)
{
++currentState;
}
}