DB and Other Questions,
Use a series of waypoints to accomplish this. A waypoint is exactly that, a point within space, 3D or 2D, which acts as a destination. So, create an array of points(coordinates x,y,z), in a series, in an order you wish for the a.i. to follow. Starting with the first point, find the angle between the object and the point. Move the object in that direction calculated, checking the distance between the two constantly.
If the distance between the two are within, let's say 1 unit, then switch the object's destination to be the next waypoint. This is not too specific, however, I will write up a quick program in 3D to show you these words in action.
+NanoBrain+