Study the FPI file for Zombie4 (the fat zombie) as it does this with the default script.
Here is a video of mob zombie zombie 1 doing what you describe. It follows a waypoint once spawned and then attacks when the player is close enough.
All I did to get this in game was add:
;WALKING WAYPOINTS
:waypointstate=0:animate=2,waypointstart
:waypointstate=3:animate=2,waypointnext
:waypointstate=4:animate=2,waypointrandom
:waypointstate=5:animate=2,waypointreverse
to the
beginning of the .fpi and then changed the
detect player and idle to:
:state=0,plrdistfurther=300:animate=2
:state=0,plrdistwithin=300,plrcanbeseen:waypointstop,state=5,rotatetoplr
I would advise saving the edited script as something else so you can keep the original file for zombies who you don't want to follow waypoints.
A man will one day wear a tophat in glasgow on a sunny day juggeling grapes while humming the jurrasic park theme tune.