This is good for guarding doors or rooms.
Please note you have to put in your own wavs.
Updteas from last version, guard are a lot more noise sensitive, so there is a greater variation of when they will fire (if you think about it its a lot more likely a guard will fire if you're charging at him than if you are walking).
;Artificial Intelligence Script
;Header
name = Restricted Area Guard
version = 1.3
desc = Guards an area and attacks if apporached.
author = Paul Williams
;Triggers
:state=0:state=1
:state=1:animate=1
:state=1,plrcanbeseen:state=2
:state=2:rotatetoplr,sound=audiobank\voices\xxx\xxx.wav,state=3
:state=3,plrdistwithin=200:rotatetoplr,sound=audiobank\voices\xxx\xxx.wav,state=4
:state=4,plrdistwithin=130:rotatetoplr,sound=audiobank\voices\xxx\xxx.wav,state=5
:state=5:shootplr
:plrcanbeseen:rotatetoplr
:plrcannotbeseen:state=1
:shotdamage=1:shootplr
:plrcanbeseen,noiseheard=200:shootplr
;End of Script
temet nosce