I create a flashlight for 1.2
;Artificial Intelligence Script
;by corno
;Header
desc = FlashLight when F pressed after 6 sec the flash switch automatically off
;Triggers
:state=0:flashlightrange=500
:state=0:flashlightblue=255,flashlightgreen=255,flashlightred=255
:state=0:hudreset,hudx=50,hudy=50,hudsizex=1024,hudsizey=768,hudimagefine=gamecore\huds\cornohuds\flashlight.dds,hudname=flash,hudhide=1,hudmake=display,State=1
:State=1,KeyPressed=33 1:flashlight=1,hudshow=flash,etimerstart,State=2,Sound=AudioBank\Switches\Click.wav
:State=2,KeyPressed=33 0:flashlight=0,hudunshow=flash,State=1
:state=2,etimergreater=6000:flashlight=0,hudunshow=flash,etimerstart,state=3
:state=3,etimergreater=4000:state=1
;End of Script