15 lines
557 BLFS
Lua
Executable File
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
|