:state=1,plrdistfurther=120:shootplr
:state=1,plrdistwithin=120:waypointstate=0
waypointstate=0 is a condition not an action
:state=1,waypointstate=2,plrdistfurther=120:shootplr
then omit the second line of state=1 because it will continuse on the waypoints anyway, until the player gets out of range while the enemy is following a waypoint
I can't promise it will work, because I don't play with waypoints much, but it's worth a try.
Also, make sure that range of 120 is right for your waypoint area, because the player may be out of range even though they are in range. (if that makes sense)