you have 2 commands
ShowLight(e)
and
HideLight(e)
so use a timer and swap them at an interval like so (this will work with multiple lights - at a constant rate but you can uncomment the line at the bottom to make it more random)
Quote: "
local delay = {}
local init_delay = {}
local on = {}
function light_flicker_init(e)
--change time here to adjust flicker timing
delay[e] = 250
init_delay[e] = delay[e]
on[e] = 0
end
function light_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]
--to make more random use this line
--delay[e] = GetTimer(e) + math.random(100,1500)
end
end"
life\'s one big game
windows vista ultimate
i5 @3.3ghz, 4gb ram, geforce gtx460, directx 11