Those are in the AI scripts now. Open them in notepad or a LUA editor and take a look at them.
There is also a follow waypoint civilian script in the script board also. Look for the smallg thread. Lots of good scripts there provided for free, and are great examples of what can be done.
Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz, 2400 Mhz, 4 Core(s), 4 Logical Processor(s), 8gb RAM, Nvidia gtx660, Windows 7 Pro 64bit