Hey,
plz take a look at this very simple AI script
;Artificial Intelligence Script
;Header
desc = AI
;Triggers
:waypointstate=0:animate=2,waypointstart
:waypointstate=3:animate=2,waypointnext
:waypointstate=4:animate=2,waypointrandom
:waypointstate=5:animate=2,waypointreverse
:state=0:state=1
:state=1,random=5:rotateheadrandom=65
:state=1,plrcanbeseen:settarget,rotatetotarget,state=2
:state=1,shotdamage=5:settarget,rotatetotarget,state=2
:state=1,noiseheard=20:settarget,rotatetotarget,state=2
:state=2,ifweapon=1,plrcanbeseen,rateoffire:waypointstop,rotatetoplr,settarget,useweapon=1,rundecal=6
:state=2,ifweapon=0:waypointstop,setframe=6,state=3
:state=2,plrcannotbeseen:state=0
:state=3:incframe=6
:state=3,frameatend=6:reloadweapon,sound=audiobank\guns\reload.wav,state=2
;End of Script
as it shows it (should) follow waypoints.. well it doesn't, and the weird part is when I remove this line
:state=1,plrcanbeseen:settarget,rotatetotarget,state=2
it works just fine.. I thought the problem is in (plrcanbeseen) condition but if so wouldn't the enemy shoot even when it doesn't see me?
I have no idea wut could be the problem.. anyhelp?
Thank You..