RIGHT NOW im too stubborn to buy a mod. i was able to find this flashlight script made by s4real. sadly, there is one flaw that i dont like about it. it has unlimited range!
I really dont want that. my question is, how can i limit the range of this script?[;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
]
thanks in advance
AMERICA! F*** YEAH!!!