;Artificial Intelligence Script
;Header
desc = My AI script
;Triggers
:state=0:state=1
:plralive=0,state=0
:ifweapon=0:reloadweapon,rotatetoplr,sound=audiobank\guns\reload.wav
:state=0,plrdistwithin=2000:rotatetoplr,shootplr,state=1
:state=0:plrdistfurther=2000,state=1
:state=1,plrcanbeseen:shootplr,state=2
:state=1,plrcannotbeseen:rotatetoplr
:state=1,plrcannotbeseen:none
:state=2,shotdamage=1:animate=21,animate=21,shootplr,state=3
:state=2,plrcanbeseen:shootplr
:state=3,shotdamage=1:movefore=200,rotatetoplr,shootplr,state=0
;End of Script
Ok, so this is what happens so far. When i test it out all the zombie does is One as soon as the game starts the zombie points to me. Then i shot it once and it moved forward, after that i started moving around and shooting it. All it did then was look at me by rotating the whole time...