@cybernescence
There is no wonder it did not work for me I also wrote a simple script:
function test_init(e)
end
function test_main(e)
PlayerDist = GetPlayerDistance(e)
if PlayerDist < 120 then
if g_PlayerFlashlight == true then
Prompt("Flashlight is on")
else
Prompt("Flashlight is off")
end
end
end
Mine looked for a true / false value because the description said that was what it gave. I should have known that this was incorrect. Yep I just changed the true / false to 1 / 0 and it works perfectly.
Thanks for that
HP Pavilion Laptop, AMD A8-4555M APU with Radeon(tm) Graphics HD Graphics 1.6GHz, 8GB Memory, 64 Bit Operating System (Windows 10), 1 TB Hard Drive.
I've got something to say - It's better to burn out than fade away.