Whats wrong with my ally script
Here is the attack-
:state=0:freeze,settargetname=enemy,rotatetotarget
:state=0,ifweapon=1:useweapon,rundecal=6,var1add=1
:state=0,ifweapon=0:state=1,setframe=36
:state=0,shotdamage=5:state=25
:state=0,targetactive=0:runfpidefault=1
:state=1:incframe=36
:state=1,frameatend=36:state=0,reloadweapon,sound=audiobank\\guns\\reload.w
:state=2:freeze,animate=1,state=3
:state=3:runfpidefault=1
:state=25,random=1:state=26,setframe=4
:state=25:state=27,setframe=3
:state=26:incframe=4,strafe=90,rotatetotarget
:state=26,random=4:useweapon,rundecal=6
:state=26,frameatend=4:animate=1,state=0
:state=27:incframe=3,strafe=-90,rotatetotarget
:state=27,random=4:useweapon,rundecal=6
:state=27,frameatend=3:animate=1,state=0
:state=0,plrusingaction=1:runfpidefault=1
:state=1,plrusingaction=1:runfpidefault=1
:state=2,plrusingaction=1:runfpidefault=1
:state=3,plrusingaction=1:runfpidefault=1
:state=25,plrusingaction=1:runfpidefault=1
:state=26,plrusingaction=1:runfpidefault=1
:state=27,plrusingaction=1:runfpidefault=1
:plrusingaction=1:sound=audiobank\\affirm1.wav
:var1=100:runfpidefault=1
enemys .FPE
;header by Mark Blosser (right-handed biped)
desc = enemy
;ai
aiinit = appear1.fpi
aimain = people\\zombiefat.fpi
aidestroy = destroy\\fadecorpse.fpi
aishoot = people\\shoot.fpi
soundset = male
;spawn
spawnmax = 0
spawndelay = 0
spawnqty = 0
;orientation
model = fatzombie.x
offx = 0
offy = 0
offz = 0
rotx = 0
roty = 0
rotz = 0
scale = 90
fixnewy = 180
;cone of sight
coneheight = 53
coneangle = 50
;visualinfo
textured = fatzombie_d2.tga
effect = effectbank\\bumpbone\\bumpbone.fx
castshadow = 0
;decals
decalmax = 2
decal0 = red
decal1 = blood
;identity details
strength = 100
ischaracter = 1
hasweapon =
isobjective = 0
cantakeweapon = 1
speed = 90
;bodypartslimbinfo (1=head/2=body/3+4=armslr/5+6=legslr)
limbmax = 0
;animationinfo
animmax = 100
anim0 = 190,209
anim1 = 210,233
anim2 = 2499,2531
anim3 = 280,299
anim4 = 260,279
anim5 = 300,318
anim6 = 319,355
anim7 = 160,189
anim11 = 0,19
anim12 = 20,39
anim13 = 493,522
anim14 = 40,59
anim15 = 60,79
anim16 = 523,552
anim17 = 80,99
anim18 = 100,119
anim20 = 120,139
anim21 = 140,159
anim31 = 356,380
anim32 = 381,405
anim33 = 381,405
anim34 = 381,405
anim35 = 381,405
anim36 = 406,442
anim40 = 443,462
anim41 = 463,492
anim50 = 553,572
anim51 = 573,597
anim52 = 598,622
anim53 = 643,662
anim54 = 623,642
anim55 = 663,681
anim56 = 682,731
anim57 = 160,189
anim61 = 0,19
anim62 = 20,39
anim63 = 882,911
anim64 = 40,59
anim65 = 60,79
anim66 = 912,941
anim67 = 80,99
anim68 = 100,119
anim70 = 120,139
anim71 = 140,159
anim81 = 732,756
anim82 = 757,781
anim83 = 757,781
anim84 = 757,781
anim85 = 757,781
anim86 = 782,831
anim90 = 832,851
anim91 = 852,881
anim92 = 2533,2590
Whats wrong?