Looks like my edit and your response cross-posted! There are actually two functions to edit. Here's the LDL versions (found in the code posted in the link above): const flashOff = function(src) {
src.set('light_radius', 0);
}
const flashOn = function(src, dim, timeout) {
let rand = Math.random() * timeout;
if (dim) {
src.set('light_dimradius', -15);
src.set('light_radius', 200);
} else {
src.set('light_radius', 200);
}
setTimeout(flashOff, rand, src);
} Try replacing them with this (untested) const flashOff = function(src) {
src.set('emits_bright_light', false);
src.set('emits_low_light', false);
}
const flashOn = function(src, dim, timeout) {
let rand = Math.random() * timeout;
if (dim) {
src.set('emits_low_light', true);
src.set('low_light_distance', 400);
} else {
src.set('emits_bright_light', true);
src.set('bright_light_distance', 200);
}
setTimeout(flashOff, rand, src);
} If this doesn't work, let me know and I can check it out after work tonight.