Quote: "attach it to an always active object somewhere and fill in your flashlights "weapon name" the system has for it - details in the script"
great Master ..you're a life saver...mant thanks ....works great but there a little bug since player can use flashlight "before" flashlight/item(colt1911 in this case) item is picked up and is not inteded to work this way...like if the F keyis enabled
but after player pickup flashlight for the first time script correclty works and if flashlight/items is not equipped player correcly cant use flashlight and F key is correcly disabled
plus i noticed that changing the default colt1911 with other weapon names (tried Magnum357,RPG,Shotgun to test) scritp dont work..
if i leave
local weapon_name = "modern\\colt1911"
all works fine..why? I'm missing something?
Edit solved the flashlight active at start issue adding
i dont know if is it the best ways since i'm learning lua so maybe it's a wrong trick...LOL
solved all my bad wrong weapon name selected.. all works great.. now need to add some cool stuffs to my flshlight system like battery picup and drain and so on... thanks smallg.. great as usually
AMD QUADCORE 880K @4.5GHZ, 32GB RAM DDR3 1600, M/B ASUS A88XM-PLUS
SVGA NVDIA 1660GTX 6GB , SSD KINGSTON A400 1TB, 2X HHD SEAGATE BARRACUDA 4TB