7 lines
178 B
Lua
7 lines
178 B
Lua
local tv = get_trigger_variable(1)
|
|
if tv == nil or tv.integer == nil then return end
|
|
local f = tv.integer / 10
|
|
if f < 0.1 then f = 0.1 end
|
|
if f > 10 then f = 10 end
|
|
lux_fade = f
|