Author Topic: Anyway to change Enviro Settings on Load Via addon; And Other Question  (Read 1222 times)

Anyway to change Environment settings through server.cs when an addon loads or something? Also is there anyway to add light sources and place audio at a certain area?


Code: [Select]
package myAddonPackage {
   function onMissionLoaded() {
        parent::onMissionLoaded();
        loadDayCycle("filepath/file.daycycle");
   }
};
deactivatepackage(myAddonPackage);
activatepackage(myAddonPackage);

stick this in your add-on server.cs. should work but i havent tested so lmk if it works or not
« Last Edit: May 14, 2018, 02:47:16 PM by thegoodperry »

Code: [Select]
package myAddonPackage {
   function onMissionLoaded() {
        parent::onMissionLoaded();
        loadDayCycle("filepath/file.daycycle");
   }
};
deactivatepackage(myAddonPackage);
activatepackage(myAddonPackage);

stick this in your add-on server.cs. should work but i havent tested so lmk if it works or not
That'll come in handy. But I meant like adjusting the water level and ground textures..

$EnvGuiServer::SimpleMode
$EnvGuiServer::SkyFile
$EnvGuiServer::WaterFile
$EnvGuiServer::GroundFile
$EnvGuiServer::SunFlareTopTexture
$EnvGuiServer::SunFlareBottomTexture
$EnvGuiServer::DayOffset
$EnvGuiServer::DayLength
$EnvGuiServer::DayCycleEnabled
$EnvGuiServer::DayCycle
$EnvGuiServer::Sunational socialistmuth
$EnvGuiServer::SunElevation
$EnvGuiServer::DirectLightColor
$EnvGuiServer::AmbientLightColor
$EnvGuiServer::ShadowColor
$EnvGuiServer::SunFlareColor
$EnvGuiServer::SunFlareSize
$EnvGuiServer::VisibleDistance
$EnvGuiServer::FogDistance
$EnvGuiServer::FogHeight
$EnvGuiServer::FogColor
$EnvGuiServer::WaterColor
$EnvGuiServer::WaterHeight
$EnvGuiServer::UnderWaterColor
$EnvGuiServer::SkyColor
$EnvGuiServer::WaterScrollX
$EnvGuiServer::WaterScrollY
$EnvGuiServer::GroundColor
$EnvGuiServer::GroundScrollX
$EnvGuiServer::GroundScrollY
$EnvGuiServer::VignetteMultiply
$EnvGuiServer::VignetteColor
« Last Edit: May 14, 2018, 03:19:54 PM by thegoodperry »