Iv'e currently been working on an AI script as currently all my enemies are having a prolem. When they move towards me and say a crate or some other obstical gets in their way, they stop and can move no further, threding the ground. My theory was that if I changed the script of the AI so that if the enemy stopepd it would go towards the nearest way point (dotted around the map.) When it reached the waypoint it would stop and continue strait towards the player. This is the script that I made but it doen't seem to be working at all. Could any of you guys be able to tell me where I went wrong?
:state=0:state=1
:state=1,plrdistfurther=50:rotatetoplr,movefore=2,animate=2
:state=1,speed=0:state=4
:state=1,plrdistwithin=50,rateoffire:rotatetoplr,setframe=8,state=2
:state=2,framebeyond=8 10,plrdistwithin=60:plraddhealth=-10,sound=audiobank\misc\melee.wav,state=3
:state=2:incframe=8,rotatetoplr
:state=2,frameatend=8:state=1
:state=3:incframe=8
:state=3,frameatend=8:state=1
:state=4:waypointstart
:state=4,waypointstate=2:state=1
:state=4,waypointstate=3:state=1
:state=4,waypointstate=4:state=1
:state=4,waypointstate=5:state=1
Help me.... I'm new!