uhh... no...
:state=0:state=1
:state=1:animate=1 ;don't animate nothing.
:state=1,plrcanbeseen:state=2
:state=2,shotdamage=1:rotatetoplr,state=3 ;Never do this!!!, if the plr shoots you, you shoot him back! Not wait for you to see him.
:state=3:shootplr ;the gaurd doesn't reload... will also shoot very rapidly...
:plrcanbeseen:rotatetoplr ;be in state=2
:plrcannotbeseen:state=1
:shotdamage=1:shootplr ;you also need settarget, VERY IMPORTANT, else the bullet does not hit the plr.
:plrcanbeseen,noiseheard=200:shootplr ;you do know that the plr would have to be breathing down the gaurds neck for him to shoot, 500 is usally good for this... also should be in state=2
I know that I sound like I am dissing you, but if you ignore that part and look at what I have to say you will have better scripting skills.
P.S. NEVER call a FPI inside a FPI, bad practice unless you make both FPI's
Merranvo, taking over the net, one forum at a time.
"ye oft de adopte early shalt move mountains, and be gods among men"