After reading the manual and Official Community Guide to FPSC, I decided to take a stab at creating huds for our game we are working on. I have a good understanding of how to get a hud to display using the TGA file and fpi script.
I have a question regarding displaying a hud once. I have a trigger point that launches the following script:
;Artificial Intelligence Script
;Header
desc = Level 1 Objective 02 (Collect Radio and Map)
;Triggers
:state=0:hudreset,hudx=50,hudy=30,hudimagefine=gamecore\text\ww2_bf_l1obj02.tga,hudname=l1obj02,hudhide=1,hudmake=display,state=10
:state=10,plrdistwithin=60:hudshow=l1obj02,hudfadeout=l1obj02
:state=10,plrdistwithin=60,plrusingaction=1:activate=2
:state=10,activated=2:state=1,setframe=0,sound=$0
:state=1:incframe=0
:state=1,frameatend=0:state=2,coloff
:state=2,plrdistwithin=60,plrusingaction=1:activate=0
:state=2,activated=0:state=3,sound=$1,colon
:state=3:decframe=0
:state=3,frameatstart=0:state=10,setframe=0
;End of Script
When I come to the trigger point, my hud comes up saying "Grab a radio and map" just as it is suppose to. I'm wondering how (if possible) or if I missed how to make it appear once only, not each time I pass the trigger.