local delay = {} local init_delay = {} local on = {} function light_flash2_init(e) --change delay here to adjust flash timing delay[e] = 100 init_delay[e] = delay[e] on[e] = 1 end function light_flash2_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] end end