U can test this...Not need to put waypoints
;Artificial Intelegence Script
;Header
desc = waypoint+attack for zombie
;Triggers
:state=0:waypointstart
:state=0,plrwithin,plrdistfurther=601:state=0
:state=0,plrwithin,plrdistwithin=600:state=20
:state=1,plrcanbeseen:movefore=10,animate=3,state=20
:state=1,shotdamage=1:movefore=10,animate=3,state=20
;-=>>>WAYPOINTS<<<=-
:waypointstate=3:animate=2,waypointnext
:waypointstate=4:animate=2,waypointrandom
:waypointstate=5:animate=2,waypointreverse
;///PLR FOUND\\\
:state=20,plrdistfurther=50,plrcanbeseen:rotatetoplr,movefore=20,animate=5
:state=20,plrcannotbeseen:state=40
:state=20,shotdamage=1:strafeforward
:state=20,plrdistwithin=50:state=50
;///Look For Plr\\\
:state=40,plrcannotbeseen,random=3:timerstart
:state=40,plrcannotbeseen,random=3,timergreater=30:rotateheadrandom=50
:state=40,plrcannotbeseen,random=3,timergreater=40:pivotrandom=50,movefore=20,animate=2
:state=40,shotdamage=1:rotatetoplr
:state=40,noiseheard=60:rotatetoplr
:state=40:state=20
;///MELEE\\\
:state=50:setframe=6
:frameatend=6:plraddhealth=-5
;///:state=50:plraddhealth=-5
:state=50:state=51
:state=51:incframe=6
:state=51,frameatend=6:state=52
:state=52,plrcanbeseen:state=20
:state=52,plrcannotbeseen:timerstart,state=40
:state=53:movefore=16,animate=5
:state=53,timergreater=1000:state=20
;end of script
funny