Here is what I have done. It seems like it should work, unless I have made a stupid error, can you guys gelp? I cannot get it to work.
;Artificial Intelligence Script
; by Hybrid
;Header
desc = Machine Gun (must be cheracters) - num pad controls
;OPERATION
;Triggers
; //Hud setup
:state=0:hudreset,hudx=50,hudy=90,hudimagefine=gamecoretextpressentertouse.tga,hudname=gunprompt,hudhide=1,hudmake=display,state=10,coloff
; //primary artivation
:state=10,plrdistwithin=70:hudshow=gunprompt,hudfadeout=gunprompt
:state=10,plrdistwithin=70,plrusingaction=1:state=1,sound=$0
; //locking player
:state=1:state=2,plrfreeze
; //operaction keys
:state=2,scancodekeypressed=92,plrdistwithin=70:state=4
:state=2,scancodekeypressed=102,plrdistwithin=70:state=5
:state=2,scancodekeypressed=97,plrdistwithin=70:state=6
:state=2,plrusingaction=1,plrdistwithin=70:state=0,plrunfreeze
; //movemeant of turret
:state=4:state=2,rotatey=-5,sound=audiobankatmospowerhum.wav
:state=5:state=2,rotatey=5,sound=audiobankatmospowerhum.wav
:state=6,ifweapon=0:state=20,setframe=6
:state=6,ifweapon=1:state=22
; //reloading
:state=20:incframe=6
:state=20,frameatend=6:state=6,reloadweapon,sound=audiobankgunsreload.wav
; //Firing! :)
:state=22:state=2,useweapon,rundecal=6
Here is the revised version, not much different, but it is sortof working. It seems to stop at state=1
the path names are right, just putting it in code makes them vanish