I've searched and came across this code snipper
;Artificial Intelligence Script
;Header
desc = Hud2
;Triggers
:state=0:hudreset,hudx=50,hudy=90,hudimagefine=gamecore\huds\YOURHUD,hudname=HUDNAME,hudhide=1,hudmake=display,state=1
:state=1,plrwithinzone=1:sound=$0,hudshow=HUDNAME,state=2
:state=2,plrwithinzone=0:hudfadeout=HUDNAME,destroy
;End of Script
Which will allow a hud to only display once when passing through a trigger zone. I have 2 questions regarding it. First, would i use this instead of the current huddisplay script i use to make text/images display via a trigger zone, or would i add it to my existing script?
Secondly(and what im really after) how would i make a trigger zone that changes the ambiance lighting in a level only trigger the once. The instance i have is that a trigger zone will make the level go dark, however after the player resets the light to the normal level, if the player backtracks and enters the 'dark' trigger zone, then the level will go dark again.
Thanks for any input