feat: add initial People Playground mod development kit
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
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);
|
||||
Reference in New Issue
Block a user