I wrote this script to be used in a T zone. the fpgcrawtext command gives way better results, I think than a hud.
I used a similar code to be used on a keypad to gain access to a section of the map. I used the enter a pin for a door script in the com guide a quasi template. and basiclly rewrote it to use the fpgcrawtext,I'll probably end up posting it here at some point.
;ARTIFICIAL INTELLIGENCE SCRIPT
;HEADER
DESC = TRIGGER ENEMY SEEN AND COVER
;TRIGGERS
:state=0:state=1
:state=1,plrwithinzone=0:state=0
:state=1,plrwithinzone=1:timerstart,state=2
:state=2:fpgcrawtextsize=24,fpgcrawtextfont=verdana,fpgcrawtextr=100,fpgcrawtextg=0,fpgcrawtextb=0,fpgcrawtextx=50,fpgcrawtexty=60
:state=2,plrwithinzone=1:fpgcrawtext=ENEMY SIGHTED
:STATE=2,TIMERGREATER=3000,PLRWITHINZONE=1:TIMERSTART,PLRSOUND=AUDIOBANK\341\A9.WAV,STATE=4
:STATE=4:FPGCRAWTEXTSIZE=24,FPGCRAWTEXTFONT=VERDANA,FPGCRAWTEXTR=100,FPGCRAWTEXTG=0,FPGCRAWTEXTB=0,FPGCRAWTEXTX=50,FPGCRAWTEXTY=60
:STATE=4,PLRWITHINZONE=1:FPGCRAWTEXT=TAKE COVER
:STATE=4,TIMERGREATER=3000,PLRWITHINZONE=1:TIMERSTART,PLRSOUND=AUDIOBANK\341\A29.WAV,STATE=6
:STATE=6:FPGCRAWTEXTSIZE=24,FPGCRAWTEXTFONT=VERDANA,FPGCRAWTEXTR=100,FPGCRAWTEXTG=0,FPGCRAWTEXTB=0,FPGCRAWTEXTX=50,FPGCRAWTEXTY=60
:STATE=6,PLRWITHINZONE=1:FPGCRAWTEXT=STANBY
:STATE=6,TIMERGREATER=3000,PLRWITHINZONE=1:TIMERSTART,PLRSOUND=AUDIOBANK\341\A39.WAV,STATE=8
:STATE=8:FPGCRAWTEXTSIZE=24,FPGCRAWTEXTFONT=VERDANA,FPGCRAWTEXTR=100,FPGCRAWTEXTG=0,FPGCRAWTEXTB=0,FPGCRAWTEXTX=50,FPGCRAWTEXTY=60
:STATE=8,PLRWITHINZONE=1:FPGCRAWTEXT=STANDBY 1
:STATE=8,TIMERGREATER=3000,PLRWITHINZONE=1:TIMERSTART,STATE=10
:STATE=10:FPGCRAWTEXTSIZE=24,FPGCRAWTEXTFONT=VERDANA,FPGCRAWTEXTR=100,FPGCRAWTEXTG=0,FPGCRAWTEXTB=0,FPGCRAWTEXTX=50,FPGCRAWTEXTY=60
:STATE=10,PLRWITHINZONE=1:FPGCRAWTEXT=STANDBY 1
:STATE=10,TIMERGREATER=300,PLRWITHINZONE=1:TIMERSTART,STATE=12
:STATE=12:FPGCRAWTEXTSIZE=24,FPGCRAWTEXTFONT=VERDANA,FPGCRAWTEXTR=100,FPGCRAWTEXTG=0,FPGCRAWTEXTB=0,FPGCRAWTEXTX=50,FPGCRAWTEXTY=60
:STATE=12,PLRWITHINZONE=1:FPGCRAWTEXT=STANDBY 1
:STATE=12,TIMERGREATER=3000,PLRWITHINZONE=1:TIMERSTART,STATE=14
:STATE=14:FPGCRAWTEXTSIZE=24,FPGCRAWTEXTFONT=VERDANA,FPGCRAWTEXTR=0,FPGCRAWTEXTG=100,FPGCRAWTEXTB=0,FPGCRAWTEXTX=50,FPGCRAWTEXTY=60
:STATE=14,PLRWITHINZONE=1:FPGCRAWTEXT=CLEAR
:STATE=14,TIMERGREATER=3000,PLRWITHINZONE=1:TIMERSTART,STATE=16
:STATE=16:FPGCRAWTEXTSIZE=24,FPGCRAWTEXTFONT=VERDANAN,FPGCRAWTEXTR=0,FPGCRAWTEXTG=100,FPGCRAWTEXTB=0,FPGCRAWTEXTX=50,FPGCRAWTEXTY=60
:STATE=16,PLRWITHINZONE=1:FPGCRAWTEXT=MOVE OUT 1
:STATE=16,TIMERGREATER=3000,PLRWITHINZONE=1:TIMERSTART,PLRSOUND=AUDIOBANK\341\A29.WAV,STATE=18
:STATE=18,TIMERGREATER=3000,PLRWITHINZONE=0:DESTROY
If I am understanding correctly I will have to change this all to etimers due to using the keypad on the same level with a timer based script.
Thanks as always for the insights.