Files
ppg-modkit/extracted_wiki_content/snippets/change_environment_settings.txt

19 lines
583 B
Plaintext

URL: https://wiki.studiominus.nl/snippets/changeEnvironmentSettings.html
Title: People Playground Modding - Change environment settings
==================================================
Change environment settings
This snippet shows you how to manipulate the environment settings.
//clone settings because its safer this way or whatever the hell, I don't remember
var set = MapConfig.Instance.Settings.ShallowClone();
//do whatever
//set.Floodlights = false;
//set.Rain = true;
//set.Snow = false;
//set.Fog = true;
//etc.
//apply settings
MapConfig.Instance.ApplySettings(set);