DisableAllLights — Dennispedia

DisableAllLights

Disables all lights in the scene. They can still be reenabled and are not otherwise affected. Used by data/script/disablelights.lua in the mission "Flooding" for the flooded variant of Lee Chemicals.

Equivalent to:

local lights = FindLights("", true)
for i=1, #lights do
	SetLightEnabled(lights[i], false)
end

This function was added in 0.4.5 (5748542).

This function is not officially documented.

Arguments

None.

Return values

None.