Im not sure exactly what you meant but this script will have the character stand for 3.5secs and if he sees,is within 70 or gets shot he will rotate to the plr and shoot him otherwise he will take cover for 2secs and if he sees,is within 70 or gets shot he will rotate to the plr and shoot him it's not tested so let me know if i need to fix it or if it's not what you wanted.
(this script gose in the main slot in character properties)
;Artificial intelligence Script
;Header
desc= enemie ducks and stands and shoots
;Triggers
:state=0:state=1
:state=1:animate=1,timerstart,state=2
:state=2,plrcanbeseen=1:rotatetoplr,shootplr
:state=2,plrdistwithin=70:rotatetoplr,shootplr
:state=2,shotdamage=5:rotatetoplr,shootplr
:timergreater=3500:state=3
:state=3:animate=31,timerstart,state=4
:state=4,plrcanbeseen=1:rotatetoplr,shootplr
:state=4,plrdistwithin=70:rotatetoplr,shootplr
:state=4,shotdamage=5:rotatetoplr,shootplr
:state=4,timergreater=2000:state=1
;End of Script