class Weather
Weather controller
Methods 40
proto native float GetTime()Returns actual time from start of a server (how many seconds elapsed from server start).
proto native Overcast GetOvercast()Returns an overcast phenomenon object.
Show 31 more
, DayZGame.ForceOvercastReset(), DayZGame.OnRPC(), DayZIntroScene.SetScene(), DayZIntroSceneXbox.DayZIntroSceneXbox(), EnochData.CalculateWind(), EnochData.Init(), EnochData.WeatherOnBeforeChange(), Environment.CollectAndSetEnvironmentData(), NasdaraData.Init(), NasdaraData.OnSandstormStart(), NasdaraData.OnSandstormStop(), NasdaraData.WeatherOnBeforeChange(), SakhalData.CalculateVolFog(), SakhalData.CalculateWind(), SakhalData.Init(), SakhalData.WeatherOnBeforeChange(), SceneData.SetInitOvercast(), ScriptConsoleWeatherTab.InitValues(), ScriptConsoleWeatherTab.UpdateWeatherValues(), UIPopupScriptSceneManager.OnChange(), UIPopupScriptSceneManager.OnClick(), UIPopupScriptSceneManager.OnOpen(), UIPopupScriptSceneManager.ResetSliders(), UIPopupScriptSceneSettings.OnChange(), UIPopupScriptSceneSettings.OnClose(), UIPopupScriptSceneSettings.OnOpen(), UIPopupScriptSceneSettings.ResetSliders(), WorldData.ComputeSnowflakeScale(), WorldData.GetSunEffectOnTemperature(), WorldData.GetTemperature(), and WorldData.GetTemperatureComponentValue()proto native Fog GetFog()Returns a fog phenomenon object.
Show 20 more
, DayZIntroSceneXbox.DayZIntroSceneXbox(), EnochData.WeatherOnBeforeChange(), Environment.CollectAndSetEnvironmentData(), NasdaraData.Init(), NasdaraData.WeatherOnBeforeChange(), SakhalData.Init(), SakhalData.WeatherOnBeforeChange(), SceneData.SetInitFog(), ScriptConsoleWeatherTab.InitValues(), ScriptConsoleWeatherTab.UpdateWeatherValues(), UIPopupScriptSceneManager.OnChange(), UIPopupScriptSceneManager.OnClick(), UIPopupScriptSceneManager.OnOpen(), UIPopupScriptSceneManager.ResetSliders(), UIPopupScriptSceneSettings.OnChange(), UIPopupScriptSceneSettings.OnClose(), UIPopupScriptSceneSettings.OnOpen(), UIPopupScriptSceneSettings.ResetSliders(), WorldData.GetTemperature(), and WorldData.GetTemperatureComponentValue()proto native Rain GetRain()Returns a rain phenomenon object.
Show 27 more
, DayZIntroSceneXbox.DayZIntroSceneXbox(), EnochData.WeatherOnBeforeChange(), Environment.CollectAndSetEnvironmentData(), FireplaceBase.Cooling(), FireplaceBase.Heating(), FireplaceBase.IsRainingAboveEntity(), GardenBase.CheckRainTick(), NasdaraData.Init(), NasdaraData.WeatherOnBeforeChange(), PlantBase.Init(), RainProcurementHandler.DetermineAmountCoef(), RainProcurementManager.RainProcurementCheck(), SakhalData.WeatherOnBeforeChange(), SceneData.SetInitRain(), ScriptConsoleWeatherTab.InitValues(), ScriptConsoleWeatherTab.UpdateWeatherValues(), UIPopupScriptSceneManager.OnChange(), UIPopupScriptSceneManager.OnClick(), UIPopupScriptSceneManager.OnOpen(), UIPopupScriptSceneManager.ResetSliders(), UIPopupScriptSceneSettings.OnChange(), UIPopupScriptSceneSettings.OnClose(), UIPopupScriptSceneSettings.OnOpen(), UIPopupScriptSceneSettings.ResetSliders(), WeaponParticlesBase.OnActivate(), GetNoiseReductionByWeather(), and GetRainNoiseReduction()proto native Snowfall GetSnowfall()Returns a snowfall phenomenon object.
Show 17 more
, DayZIntroScene.SetScene(), DayZIntroSceneXbox.DayZIntroSceneXbox(), EnochData.Init(), EnochData.WeatherOnBeforeChange(), Environment.CollectAndSetEnvironmentData(), MiscGameplayFunctions.GetCombinedSnowfallWindValue(), NasdaraData.Init(), NasdaraData.WeatherOnBeforeChange(), PlayerBase.AllowDecayEffects(), RainProcurementHandler.DetermineAmountCoef(), SakhalData.CalculateWind(), SakhalData.Init(), SakhalData.WeatherOnBeforeChange(), ScriptConsoleWeatherTab.InitValues(), ScriptConsoleWeatherTab.UpdateWeatherValues(), GetNoiseReductionByWeather(), and GetSnowfallNoiseReduction()proto native WindDirection GetWindDirection()Returns a wind direction phenomenon object.
See also: See, Weather.WindDirectionToAngle, and, Weather.AngleToWindDirection, for, conversions.
proto native WindMagnitude GetWindMagnitude()Returns a wind magnitude phenomenon object.
Show 9 more
, Environment.CollectAndSetEnvironmentData(), MiscGameplayFunctions.GetCombinedSnowfallWindValue(), NasdaraData.Init(), NasdaraData.OnSandstormStart(), NasdaraData.WeatherOnBeforeChange(), SakhalData.WeatherOnBeforeChange(), ScriptConsoleWeatherTab.InitValues(), ScriptConsoleWeatherTab.UpdateWeatherValues(), and WorldData.WindEffectTemperatureValue()proto native Sandstorm GetSandstorm()Returns the sandstorm phenomenon weather controller.
Show 12 more
, DayZIntroScene.SetScene(), DayZIntroSceneXbox.DayZIntroSceneXbox(), DayZPlayerCameraBase.IsSandstormActiveForPlayer(), NasdaraData.WeatherOnBeforeChange(), PlayerBase.OnDisconnect(), SandstormExposureDynamicMdfr.Init(), ScriptConsoleWeatherTab.InitializeTab(), ScriptConsoleWeatherTab.InitValues(), ScriptConsoleWeatherTab.UpdateWeatherValues(), SquintSymptom.OnUpdateClient(), GetSandstormNoiseReduction(), and WorldData.StartSandstorm()Sets the thunderstorm properties.
density- A value in <0, 1> range where 0 means no thunderstorms at all and 1 means thunderstorm every time it gets cloudy.
threshold- The overcast value that must be exceeded so that lightning can appear.
timeOut- A minimal time in seconds between lightning during thunderstorm.
proto native void SuppressLightningSimulation(bool state)enables/disables thunderbolt simulation on client (together with sounds)
proto native vector GetWind()Returns wind vector (direction and speed as length of the vector).
proto native void SetWind(vector wind)Sets the wind vector (direction and speed as length of the vector).
float len = wind.Normalize();
if ( len > 0 )
{
float angle = WindDirectionToAngle( wind );
GetWindMagnitude().Set( len, 0, 0 );
GetWindDirection().Set( angle, 0, 0 );
}See also: See, Weather.WindDirectionToAngle, and, Weather.AngleToWindDirection, for, conversions.
proto native float GetWindSpeed()Returns actual wind speed in metre per second.
proto native void SetWindSpeed(float speed)Sets the actual wind speed in metre per second.
proto native float GetWindMaximumSpeed()Returns maximal wind speed in metre per second.
proto native void SetWindMaximumSpeed(float maxSpeed)Sets the maximal wind speed in metre per second. Equivalent to setting WindMagnitude phenomenon(s) value upper limit.
Reads function parameters that controls the wind behaviour (change in time).
fnMin- Function relative minimum (in range <0, 1>).
fnMax- Function relative maximum (in range <0, 1>).
fnSpeed- Controls speed of change of function value.
Sets function parameters that controls the wind behaviour (change in time).
fnMin- Function relative minimum (in range <0, 1>).
fnMax- Function relative maximum (in range <0, 1>).
fnSpeed- Controls speed of change of function value.
Sets overcast threshold values for rain phenomena.
Rain can start only if actual overcast value is in given range of <tMin, tMax>. If it's already raining and actual overcast value gets out of given range then rain will stop in given tTime seconds.
Default values are: tMin = 0.6 tMax = 1 tTime = 30
tMin- Minimal overcast value (in range <0, 1>).
tMax- Maximal overcast value (in range <0, 1>).
tTime- Time in seconds when it stops raining.
Show 1 more
, NasdaraData.WeatherOnBeforeChange()Sets overcast threshold values for snowfall phenomena.
Snowfall can start only if actual overcast value is in given range of <tMin, tMax>. If it's already snowing and actual overcast value gets out of given range then snowfall will stop in given tTime seconds.
Default values are: tMin = 0.6 tMax = 1 tTime = 30
tMin- Minimal overcast value (in range <0, 1>).
tMax- Maximal overcast value (in range <0, 1>).
tTime- Time in seconds when it stops snowing.
proto native void SetSnowflakeScale(float scale)Sets the overall scale of snowflakes during snowfall phenomenon. This value is not synchronized and should be set by deterministic means.
scale- Scale, 1.0 = default
proto native float GetSnowflakeScale()Returns the overall scale of snowflakes during snowfall phenomenon.
Returns the xz angle of the provided wind vector.
dir- Non-zero wind vector
Returns: Wind angle in the -PI, +PI interval.
Returns wind direction from the provided wind angle.
angle- Wind angle in the -PI, +PI interval.
Returns: Wind direction vector.
proto native bool IsDynVolFogEnabled()Dynamic volumetric fog only takes effect if enabled in the world config.
Returns: Whether the dynamic volumetric fog is enabled.
Sets the dynamic volumetric fog distance density. Only takes effect if dynamic volumetric fog is enabled.
value- Density percentage in <0,1> range.
time- Transition time in seconds. (0 for immediate effect)
proto native float GetDynVolFogDistanceDensity()Returns the current 'dynamic' volumetric fog distance density.
Sets the dynamic volumetric fog height density. Only takes effect if dynamic volumetric fog is enabled.
value- Density percentage in <0,1> range.
time- Transition time in seconds. (0 for immediate effect)
proto native float GetDynVolFogHeightDensity()Returns the current 'dynamic' volumetric fog height density.
Sets the 'dynamic' volumetric height bias. Takes effect only if enabled via world config.
value- Height offset in meters relative to 0.
time- Transition time in seconds.
proto native float GetDynVolFogHeightBias()Returns the current 'dynamic' volumetric fog height bias in meters.
void MissionWeather(bool use)bool GetMissionWeather()void SetWeatherUpdateFreeze(bool state)bool GetWeatherUpdateFrozen()Show 1 more
, Math.Max()private float GetRainNoiseReduction()private float GetSnowfallNoiseReduction()float GetNoiseReductionByWeather()