A guard who follow waypoints, wait at the end and start for some seconds,if player is near, he has to say "Go away". Next time the player is near, he say "I already told. I will shoot you". If the player goes for a third time, he must shoot the player.
I made a script which is not working fully. I made this script for two states only. The guard have to shoot the player on second time.
Try for yourself what happens with this script.
;Header
desc = guard talk and shoot
;Triggers
:state=0:hudreset,hudx=50,hudy=90,hudimagefine=gamecore/text/guard1.tga,hudname=guard1,hudmake=display,hudunshow=guard1
:state=0:hudreset,hudx=50,hudy=90,hudimagefine=gamecore/text/guard2.tga,hudname=guard2,hudmake=display,hudunshow=guard2
:state=0:timerstart,state=1
:state=1,timergreater=25000,waypointstate=0:animate=2,waypointstart
:state=1,waypointstate=3:animate=2,waypointnext
:state=1,waypointstate=4:animate=2,waypointrandom
:state=1,waypointstate=5:animate=2,waypointstop,timerstart,state=2
:state=2,timergreater=12000:animate=2,waypointreverse,state=0
:plrdistwithin=60:rotatetoplr,freeze,hudshow=guard1,hudfadeout=guard1,state=0,activate=2,timerstart
:activated=2,plrdistwithin=60,timergreater=10000:rotatetoplr,hudshow=guard2,hudfadeout=guard2,runfpi=people\pace.fpi
;End of Script
drakul