Thank you guys
Now, the only thing i would need is a function that would load the default skybox .msenv of the map.
For example, istead of this "def wetter2" there should be a function for the default map.
Code
- def wetter2(self):
- background.RegisterEnvironmentData(1, "d:/ymir work/environment/skybox1.msenv")
- background.SetEnvironmentData(1)
- constInfo.ENVIORMENT_SAVE = "d:/ymir work/environment/skybox1.msenv"
- constInfo.ENVIORMENT_DATA = 1
- environment = open("lib/environment.cfg","w")
- environment.write(constInfo.ENVIORMENT_SAVE)