I am having some issues with this script I want it to have the enemy follow the waypoint into the building and up the stairs then find the player and attack. First off when I have a waypoint link to another they stop at the joint. Second if one does not see you the others will just pile at the end of the waypoint. Last if you shoot the enemy and he does not die he runs back to the end of the waypoint here is the script.
:state=0:state=5
:state=5,waypointstate=2:runfore=8,animate=5
:state=5,waypointstate=3:waypointnext
:state=5,waypointstate=0:waypointstart
:state=5,waypointstate=5:state=1
:state=1,plrcanbeseen:state=2
:state=2,plrdistfurther=40:rotatetoplr,runfore=3,animate=5
:state=2,plrcannotbeseen:waypointstart,state=1
:state=2,plrdistwithin=40,rateoffire:rotatetoplr,setframe=8,state=3
:state=3,framebeyond=8 25,plrdistwithin=40:plraddhealth=-10,sound=audiobank\misc\melee.wav,state=3
:state=3:incframe=8,rotatetoplr
:state=3,frameatend=8:state=1
:state=4:incframe=8
:state=4,frameatend=8:state=1