ok, so, maybe I explain more precisely what I mean
I've slightly modified default
Strafe10 script. I've added a new
Moving Backwards animation, but this animation based on
strafe command.
Now I would like to stop strafe animation and start idle animation, when character will be very close to the wall or entity.
Here is the script:
;Artificial Intelegence Script
;Header
desc = Strafe While Shooting
;Triggers
:state=0,ifweapon=0:state=8,setframe=6
:plrcanbeseen:settarget,rotatetotarget,rotatetoplr,resethead
:state=0,plrdistwithin=150,random=20:state=9
:state=0,shotdamage=1:rotatetoplr,state=7
:state=0,noiseheard=5:settarget,rotatetotarget,rotatetoplr,state=7
:state=0,ifweapon=1,plrcanbeseen=46,plringunsight,rateoffire:useweapon,rundecal=6
:state=1:incframe=3,strafe=-90,rotatetoplr
:state=1,ifweapon=1,plrcanbeseen:useweapon,rundecal=6
:state=1,frameatend=3:state=0,animate=1
:state=5:useweapon,rundecal=6,state=0
:state=4:state=5
:state=3:state=4
:state=2:state=3
:state=6:incframe=4,strafe=90,rotatetoplr
:state=6,ifweapon=1,plrcanbeseen:useweapon,rundecal=6
:state=6,frameatend=4:state=0,animate=1
;Moving backwards
;---------------------------------------------------------
:state=11:incframe=100,strafe=180,rotatetoplr
:state=11,ifweapon=1,plrcanbeseen:useweapon,rundecal=6
:state=11,frameatend=100:state=0,animate=1
:state=7,random=1:state=6,setframe=4
:state=7,random=2:state=1,setframe=3
:state=7,random=1:state=11,setframe=100
;----------------------------------------------------------
:state=8:incframe=6
:state=8,frameatend=6:state=0,reloadweapon,sound=audiobank\guns\reload.wav
:state=9,plrcannotbeseen:state=10
:state=9:state=0
:state=10,random=1:rotatetoplr,strafe=135
:state=10,random=1:rotatetoplr,strafe=-135
:state=10,random=1:rotatetoplr,strafe=-65
:state=10,random=1:rotatetoplr,strafe=65
:state=10:state=7
;End of Script
Thanks in advance for any help