So I'm trying to whip-up a simple script to get npc's to turn their head to you when you get close.
;Artificial Intelligence Script
;Header
desc = Passive Sentry behaviour
;Triggers
:state=0:animate=1
:state=0,plrcanbeseen,plrdistwithin=250:lookatplr
:state=0,plrcannotbeseen:resethead
:state=0,plrdistfurther=250:resethead
;End of Script
I've tried writing this script a couple different ways. I'm sure there's some bit of logic I'm not considering as to why it's not co-operating.
Either that, or in my blundering understanding of FPI, I'm just trying to use a command to do something it's not meant to.
I did some searching around to see if I could find any topics on either this command or if someone else has already done a script like this, but there either aren't, or I'm horrible at using TGC's search function.
Anyone have any insight? Anything at all is appreciated.