OOOO MAN I'm soo close. The bad guy dose the script but there is three problems. He is't holding the gun, the gun is stell there,and he dosen't go to it to pick it up, although he has all the settings of the gun(sound,speed,damage) he isn't doing what I wan't him to do. I'm soo vary close to getting this pan in the neck script down. I just need you're help once more here it is.
;Artificial Intelligence Script
;Header
desc = Look and Shoot Far From Player (SHOOTCLOSE replaces CHASE until DarkAI added)
;Triggers
:state=0,plrcanbeseen:state=1,settarget
:state=0:runfpidefault=1
:state=1:rotatetoplr
:state=1,plrcanbeseen:settarget
:state=1,ifweapon=1,plrdistfurther=100,plrelevwithin=10:movetotarget=1,animate=5
:state=1,plrdistwithin=101:rotatetoplr
:state=1,ifweapon=1,plrdistwithin=400,plrcanbeseen=46,rateoffire:animate=1,rotatetoplr,freeze,useweapon,rundecal=6
:state=1,ifweapon=0:animate=1,freeze,state=2,setframe=6
:state=1,plrdistwithin=200,random=20:state=5
:state=1,plrdistwithin=50:state=10
:state=1,losetarget=100:state=5
:state=2:incframe=6
:state=2,frameatend=6:state=1,reloadweapon,sound=audiobankgunsreload.wav
:state=5,random=1:state=6,setframe=4
:state=5:state=7,setframe=3
:state=6:incframe=4,strafe=90,rotatetoplr
:state=6,frameatend=4:state=1,animate=1
:state=7:incframe=3,strafe=-90,rotatetoplr
:state=7,frameatend=3:state=1,animate=1
:state=10:state=11,setframe=5
:state=11:incframe=5,strafe=180,rotatetoplr
:state=11,frameatend=5:state=1,animate=1
:state=11:state=12
:state=12:state=13
:state=13,newweaponcanbeseen=1:settarget,lookattarget,rotatetotarget,movetotarget,collecttarget,useweapon:animate=5,animate=35
:state=13:state=1
;End of Script
I'm not so wored about the holding the gun or the that it's stell there. I'm most wored about getting the bad guy to move to the gun.
If you can't win, cheat. If you can't cheat, quite.