Files
BarotraumaModServer/LocalMods/Complete Global Darkness Reboot/Lua/Scripts/Server/LevelDarkness.lua
2026-06-09 00:42:10 +03:00

15 lines
557 BLFS
Lua
Executable File

Hook.Add("roundStart", "make level dark", function()
AttemptLevel()
end)
function AttemptLevel()
Timer.Wait(function()
if (Level.Loaded != nil) then
print("Level.Loaded.LevelData.GenerationParams.AmbientLightColor = Color(0,0,0,0)")
Level.Loaded.LevelData.GenerationParams.AmbientLightColor = Color(0,0,0,0)
elseif (not tostring(Game.GameSession.GameMode) == "Barotrauma.TestGameMode") then
print("LevelDarkness AttemptLevel")
AttemptLevel()
end
end, 35)
end