s4real,
Clean, simple and very usable. What more could we ask for. I altered the script to work on the "f" key only ("f" on, "f" off). It just seems easier that way. (a little trick I learned from Conjured) Hope you don't mind.
;Artificial Intelligence Script
Flahlight script
;Header
desc = flashlight s4real (f on, f off)
;Triggers
:state=0:hudreset,hudx=50,hudy=50,hudimagefine=gamecoretextflash.dds,hudname=flash,hudhide=1,hudmake=display,state=1
:state=1,scancodekeypressed=33:hudshow=flash,ambience=40,state=2
:state=2,scancodekeypressed=0:state=3
:state=3,scancodekeypressed=33:hudunshow=flash,ambience=0,state=4
:state=4,scancodekeypressed=0:state=1
;End of Script
Thanks again. I think we're about to see a rash of levels with flashlights.
Best.
I'm sorry, my answers are limited. You must ask the right question.