A homebrew script of my own:
;Artificial Intelligence Script
;Header
name = Guard
version = 1.2
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=audiobankvoicesguardrestricted.wav,state=3
:state=3,plrdistwithin=200:rotatetoplr,sound=audiobankvoicesguardstop.wav,state=4
:state=4,plrdistwithin=130:rotatetoplr,sound=audiobankvoicesguardstophim.wav,state=5
:state=5:shootplr
:plrcanbeseen:rotatetoplr
:plrcannotbeseen:state=1
:shotdamage=1:shootplr
:plrcanbeseen,noiseheard=200:shootplr
;End of Script
This script is ideal for having your AI defend something.
When the player gets within range of the AI, it faces the player and orders it to halt (or play any wav), if you carry own walking towards the AI it warns you again (using a different wav), then when you get too close it loads the shoot.fpi (advise using a stationary one or you miss the point of it being a guard).
Once they've seen you if you jump around or fire your weapon they fire back a you.
I wrote this script this morning, and felt like I should share it with you because people keep complaining about the AI and I felt like contributing. I think more people should try out thier own AI scripts, it's all there in the manual (I can barely use HTML) and if you want AI just how you want it just try doing it yourself.
Ideal voices for the guards are ones that I took from the pack at
http://www.psionic3d.co.uk.
Hope someone makes good use of this.
temet nosce