How to make the character to stop at every waypoint at a certain time?
I have a script
;Artificial Intelligence Script
;Header
desc = follow
;Triggers
:waypointstate=0:animate=2,rotateheadrandom=40,waypointstart
:waypointstate=3:animate=2,rotateheadrandom=40,waypointnext
:waypointstate=4:animate=2,rotateheadrandom=40,waypointrandom
:waypointstate=5:animate=2,rotateheadrandom=40,waypointreverse
:noiseheard:settarget,activatetarget=2,animate=2,state=0
:state=0:waypointstart,globalvar=1,state=1
:losetarget=100:state=0,music=audiobank\music\generic\main.wav,setentityspeed=80
:state=1,varequal=0,plrcanbeseen,plrdistwithin=200:waypointstop,rotatetoplr,animate=2,movefore=2,music=audiobank\music\Run3.wav,state=2
:state=2:setentityspeed=160
:state=2:state=3,state=6
:state=6,plrdistfurther=80:rotatetoplr,movefore=2,animate=4
:state=6,plrdistwithin=80,rateoffire:rotatetoplr,setframe=8,state=4
:state=4,framebeyond=8 60,plrdistwithin=80:plraddhealth=-10,state=5
:state=4:incframe=8,rotatetoplr
:state=4,frameatend=8:state=6
:state=5:incframe=8
:state=5,frameatend=8:state=6
;End of Script