When I place a torch, she makes the dynamic entities black, but when I activate the torch, they become again normal.
How I can resolve this problem?
;Artificial Intelligence Script
Flahlight script
;Header
desc = flashlight s4real
;Triggers
:state=0:hudreset,hudx=50,hudy=50,hudimagefine=gamecore\text\flash.dds,hudname=flash,hudhide=1,hudmake=display,state=1
:state=1,scancodekeypressed=33:hudshow=flash,sound=audiobank\flashswitch\flash.ogg,ambience=40,state=2
:state=2,scancodekeypressed=0:state=3
:state=3,scancodekeypressed=33:hudunshow=flash,sound=audiobank\flashswitch\flash.ogg,ambience=0,state=4
:state=4,scancodekeypressed=0:state=1
;End of Script