I need some help with a script. Everything works except for the npc turning around and walking away. Is there someone here that can help me? Here the script.
;Artificial Intelligence Script
;Header
desc = Follow Waypoints and Stop
;Triggers
:waypointstate=0:animate=2,waypointstart
:waypointstate=3:animate=2,waypointnext
:waypointstate=4:animate=2,waypointrandom
:waypointstate=5:animate=2,waypointstop
:state=0:hudreset,hudx=50,hudy=90,hudimagefine=gamecore\text\colonel1.png,hudname=colonel1,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=90,hudimagefine=gamecore\text\tani1a.png,hudname=tani1a,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=90,hudimagefine=gamecore\text\colonel2.png,hudname=colonel2,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=90,hudimagefine=gamecore\text\tani1.png,hudname=tani1,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=90,hudimagefine=gamecore\text\colonel3.png,hudname=colonel3,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=90,hudimagefine=gamecore\text\tani2.png,hudname=tani2,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=90,hudimagefine=gamecore\text\colonel4.png,hudname=colonel4,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=90,hudimagefine=gamecore\text\tani3.png,hudname=tani3,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=90,hudimagefine=gamecore\text\colonel5.png,hudname=colonel5,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=90,hudimagefine=gamecore\text\tani4.png,hudname=tani4,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=90,hudimagefine=gamecore\text\colonel6.png,hudname=colonel6,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=90,hudimagefine=gamecore\text\tani5.png,hudname=tani5,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=90,hudimagefine=gamecore\text\colonel7.png,hudname=colonel7,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=90,hudimagefine=gamecore\text\guard1.png,hudname=guard1,hudhide=1,hudmake=display,state=10
:state=10,plrdistwithin=60,plrusingaction=1:rotatetoplr,hudshow=colonel1,timerstart,state=12
:state=12,timergreater=3000:hudfadeout=colonel1,state=20
:state=20,plrdistwithin=60,plrusingaction=1:rotatetoplr,hudshow=tani1a,timerstart,state=22
:state=22,timergreater=3000:hudfadeout=tani1a,state=30
:state=30,plrdistwithin=60,plrusingaction=1:rotatetoplr,hudshow=colonel2,timerstart,state=32
:state=32,timergreater=10000:hudfadeout=colonel2,state=40
:state=40,plrdistwithin=60,plrusingaction=1:rotatetoplr,hudshow=tani1,timerstart,state=42
:state=42,timergreater=2000:hudfadeout=tani1,state=50
:state=50,plrdistwithin=60,plrusingaction=1:rotatetoplr,hudshow=colonel3,timerstart,state=52
:state=52,timergreater=3000:hudfadeout=colonel3,state=60
:state=60,plrdistwithin=60,plrusingaction=1:rotatetoplr,hudshow=tani2,timerstart,state=62
:state=62,timergreater=2000:hudfadeout=tani2,state=70
:state=70,plrdistwithin=60,plrusingaction=1:rotatetoplr,hudshow=colonel4,timerstart,state=72
:state=72,timergreater=10000:hudfadeout=colonel4,state=80
:state=80,plrdistwithin=60,plrusingaction=1:rotatetoplr,hudshow=tani3,timerstart,state=82
:state=82,timergreater=5000:hudfadeout=tani3,state=90
:state=90,plrdistwithin=60,plrusingaction=1:rotatetoplr,hudshow=colonel5,timerstart,state=92
:state=92,timergreater=2000:hudfadeout=colonel5,state=100
:state=100,plrdistwithin=60,plrusingaction=1:rotatetoplr,hudshow=tani4,timerstart,state=102
:state=102,timergreater=5000:hudfadeout=tani4,state=110
:state=110,plrdistwithin=60,plrusingaction=1:rotatetoplr,hudshow=colonel6,timerstart,state=112
:state=112,timergreater=3000:hudfadeout=colonel6,state=120
:state=120,plrdistwithin=60,plrusingaction=1:rotatetoplr,hudshow=tani5,timerstart,state=122
:state=122,timergreater=3000:hudfadeout=tani5,state=130
:state=130,plrdistwithin=60,plrusingaction=1:rotatetoplr,hudshow=colonel7,timerstart,state=132
:state=132,timergreater=8000:hudfadeout=colonel7,state=140
:state=140,plrdistwithin=60,plrusingaction=1:rotatetoplr,hudshow=guard1,timerstart,state=142
:state=142,timergreater=1000:hudfadeout=guard1,state=1
:state=1,waypointstate=6:animate=2,waypointstart
:waypointstate=7:animate=2,waypointnext
:waypointstate=8:animate=2,waypointrandom
;End of Script