Page 1 of 1
darkness_to_turn_on doesn't seem to do anything?
Posted: Sat Nov 23, 2024 7:47 pm
by Big_J
When modifying darkness_to_turn_on on NVG, or adding new NVG with this parameter different, the value doesn't seem to affect anything.
Re: darkness_to_turn_on doesn't seem to do anything?
Posted: Sat Nov 23, 2024 8:12 pm
by boskid
Works for me.
Re: darkness_to_turn_on doesn't seem to do anything?
Posted: Sat Nov 23, 2024 9:02 pm
by Big_J
boskid wrote: Sat Nov 23, 2024 8:12 pmWorks for me.
Am I using it wrong?
I set the value to 0.3, when surface.daytime >= 0.3, the NVG do not switch on.
Re: darkness_to_turn_on doesn't seem to do anything?
Posted: Sat Nov 23, 2024 9:14 pm
by boskid
It says "darkness to turn on", not "daytime to turn on". Check LuaSurface::darkness (read)