Here it is as Promised!
It is just a Cuboid that goes side to side but it could adapted and use in a game to simulate guard patrol routes! If you want you can add in more waypoints (boxes) so your guy has a more interesting and complex patrol route!
REMSTART
Here is very simple Patrolling AI!
By Saberdude
REMEND
Autocam Off
Make Object Box 1,10,50,10
Make Object Box 2,10,10,100
Make Object Box 3,10,10,100
Hide Object 2
Hide Object 3
Position Object 1,0,0,0
Position Object 2,100,0,0
Position Object 3,-100,0,0
Point Object 1,Object Position X(2),0,Object Position Z(2)
Position Camera 0,0,180
Point Camera Object Position X(1),Object Position Y(1),Object Position Z(1)
Do
Move Object 1,1
If Object Collision(1,2)>0
XRotate Object 1,180
EndIf
If Object Collision(1,3)>0
XRotate Object 1,360
EndIf
Loop
DRAGONFIRE STUDIOS
Lead Programmer
(The Studio being my front room)