;Artificial Intelligence Script ;Header desc = search for player if loose player search again ;Triggers ;-=>>>WAYPOINTS<<<=- :waypointstate=3:animate=2,waypointnext :waypointstate=4:animate=2,waypointrandom :waypointstate=5:animate=2,waypointreverse :state=0,plrdistfurther=600:animate=1 :state=0,plrdistwithin=600:state=20 ;///PLR FOUND\\\ :state=20,plrcanbeseen:state=50 :state=20,plrcannotbeseen:state=40 ;///Look For Plr\\\ :state=40:raycast=20 100 :state=40:pivotrandom=15,rotateheadrandom=45,movefore=10,animate=2 ;:state=40:pivotrandom=25,movefore=1,animate=2 :state=40,shotdamage=1:rotatetoplr,state=20 :state=40,noiseheard:rotatetoplr,state=20 :state=40,plrcanbeseen:state=50 ;//ATTACK\\ :state=50:settarget,state=51 :state=50,losetarget=2000:state=20 :state=51:rotatetoplr,runfore=5,animate=5 :state=51,plrcannotbeseen:state=40 :state=51,losetarget=5000:state=20 :state=51,plrdistwithin=60:state=60 :state=60:setframe=8,state=61 :state=61,framebeyond=8 60,plrdistwithin=60:plraddhealth=-5,state=62 :state=61:incframe=8 :state=61,frameatend=8:state=50 :state=62:incframe=8 :state=62,frameatend=8:state=50 ;End of Script