Hi,
I have recently started scripting but could do with a little help here.
:plralive=0:state=0,animate=1
:state=0,plrcanbeseen:state=1
:state=0,noiseheard=1000:rotatetoplr,state=1
:state=0,shotdamage=1:rotatetoplr,state=1
:state=1,ifweapon=1,plrcanbeseen:rotatetoplr,settarget,useweapon,rundecal=6
:state=1,ifweapon=0:state=2,setframe=6
:state=1,shotdamage=1:state=3,setframe=3
:state=1,plrdistfurther=400:rotatetoplr,state=4,setframe=2
:state=1,plrcannotbeseen:state=5
:state=1,healthless=30:state=4,setframe=2
:state=1,plrdistfurther=400,plrcannotbeseen:state=0
:state=1,plrdistwithin=100:state=6
:state=2:incframe=6
:state=2,frameatend=6:state=1,reloadweapon,sound=audiobankgunsreload.wav
:state=3:incframe=3
:state=3,random=1:rotatetoplr,strafe=90,rotatetoplr
:state=3,random=1:rotatetoplr,strafe=-90,rotatetoplr
:state=3,frameatend=3:animate=1,state=1
:state=4:incframe=2
:state=4:movefore=8
:state=4,frameatend=2:animate=1,state=1
:state=5,random=1:rotatey=65,state=4,setframe=2
:state=5,random=1:rotatey=-65,state=4,setframe=2
:state=5,plrdistwithin=200:rotatetoplr,state=1
:state=5,noiseheard=500:rotatetoplr,state=1
:state=5,shotdamage=1:rotatetoplr,state=1
:state=6,random=1,rateoffire:plraddhealth=-12
:state=6,random=2,rateoffire:plraddhealth=-14
:state=6,random=3,rateoffire:plraddhealth=-16
:state=6:state=1
My problem is that I don't like the way he randomly rotates when he cannot see the player. Is there a way to make him walk down corridors etc rather than just randomly rotating often towards walls?
Thanks for any help,
Sam