Creating a path along surface that always decreases in z value?

If I remember right, in this thread were a few solutions with shortest path, maybe it helps.