Okay, I've been working on a demo and ran into a little problem.
I've been useing the script from
http://forum.thegamecreators.com/?m=forum_view&t=129552&b=23
to create a area where the player must stick to the shadows and avoid a couple of guards, but I cant seem to get the guards to ignore the player when he's in the 'stealth zone', they just charge at him whenever, guns blazing.
I think something is wrong the AI script. here's my script:
;Artificial Intelligence Script
;Header
desc = Hunt
;Triggers
:state=0:globalvar=56,state=1
:state=1,plrcanbeseen,varequal=0:settarget,state=2
:state=1,random=20:rotateheadrandom=65
:state=1,random=60:rotatetoplr
:state=1,shotdamage=10:settarget,animate=1,rotatetotarget,resethead,state=4
:state=1,noiseheard=5:rotateheadrandom=85
:state=2,varequal=0:waypointstop,rotatetoplr,state=3,shootplr
:state=2,varequal=1:rotateheadrandom=65,state=1
:state=3:animate=1,state=0
:state=4,plrcanbeseen=46,varequal=0:settarget,state=2
:state=4,random=20:animate=2,state=1
;End of Script
Can anyone see if I've done something wrong?