Got it thank you
I feel a bit dumb lol
local delay = {}
local init_delay = {}
local on = {}
function flame_flicker_init(e)
--change time here to adjust flicker timing
delay[e] = 10
init_delay[e] = delay[e]
on[e] = 0
end
function flame_flicker_main(e)
if GetTimer(e) > delay[e] then
if on[e] == 0 then
on[e] = 1
ShowLight(e)
else
on[e] = 0
HideLight(e)
end
delay[e] = GetTimer(e) + init_delay[e]
--the next line controls the random flicker
delay[e] = GetTimer(e) + math.random(100,1500)
end
end
local delay = {}
local init_delay = {}
local on = {}
function flame_flicker2_init(e)
--change time here to adjust flicker timing
delay[e] = 5
init_delay[e] = delay[e]
on[e] = 0
end
function flame_flicker2_main(e)
if GetTimer(e) > delay[e] then
if on[e] == 0 then
on[e] = 1
ShowLight(e)
else
on[e] = 0
HideLight(e)
end
delay[e] = GetTimer(e) + init_delay[e]
--the next line controls the random flicker
delay[e] = GetTimer(e) + math.random(100,1500)
end
end
local delay = {}
local init_delay = {}
local on = {}
function flame_flicker3_init(e)
--change time here to adjust flicker timing
delay[e] = 1
init_delay[e] = delay[e]
on[e] = 0
end
function flame_flicker3_main(e)
if GetTimer(e) > delay[e] then
if on[e] == 0 then
on[e] = 1
ShowLight(e)
else
on[e] = 0
HideLight(e)
end
delay[e] = GetTimer(e) + init_delay[e]
--the next line controls the random flicker
delay[e] = GetTimer(e) + math.random(100,1500)
end
end
Welcome to the real world!
Windows 10 Pro x64 - Core i7-2600K @3.40GHz - 32.0GB RAM - GeForce GTX 950 2GB - 4x500GB SSD Striped