Class WeatherScript
- Namespace
- SkyrimForge.Papyrus
- Assembly
- SkyrimForge.Game.dll
Functions and comments from Weather.psc.
public static class WeatherScript
- Inheritance
-
WeatherScript
- Inherited Members
Properties
Dispatcher
The dispatcher that binds this script to a form and calls the functions and properties that have no generated member.
public static PapyrusScriptDispatcher Dispatcher { get; }
Property Value
Methods
FindWeather(int)
Finds a weather from the current region/climate whose classification matches the given one. 0 - Pleasant 1 - Cloudy 2 - Rainy 3 - Snow
public static Task<Weather?> FindWeather(int auiType)
Parameters
auiTypeint
Returns
Remarks
SkyrimForge Note: Only the weathers of the current climate are searched, so a climate that declares none of the requested classification returns null.
ForceActive(PapyrusScript<Weather>, bool)
Forces the active weather on the sky to be this weather.
[Obsolete("Uses the Papyrus virtual machine. Prefer TaskQueueInterface.QueueForceWeather(Weather, bool).", DiagnosticId = "SKYRIMFORGE0002")]
public static Task ForceActive(this PapyrusScript<Weather> self, bool abOverride = false)
Parameters
selfPapyrusScript<Weather>abOverridebool
Returns
GetClassification(PapyrusScript<Weather>)
Gets this weather's classification -1 - No classification 0 - Pleasant 1 - Cloudy 2 - Rainy 3 - Snow
public static Task<int> GetClassification(this PapyrusScript<Weather> self)
Parameters
selfPapyrusScript<Weather>
Returns
GetCurrentWeather()
Gets the sky's current weather
public static Task<Weather?> GetCurrentWeather()
Returns
GetCurrentWeatherTransition()
Gets the transition percentage of the current weather
public static Task<float> GetCurrentWeatherTransition()
Returns
GetFogDistance(PapyrusScript<Weather>, bool, int)
0 - Near 1 - Far 2 - Power 3 - Max
public static Task<float> GetFogDistance(this PapyrusScript<Weather> self, bool day, int type)
Parameters
selfPapyrusScript<Weather>daybooltypeint
Returns
GetOutgoingWeather()
Gets the sky's outgoing weather
public static Task<Weather?> GetOutgoingWeather()
Returns
GetSkyMode()
Gets the sky's current mode 0 - No sky (SM_NONE) 1 - Interior (SM_INTERIOR) 2 - Skydome only (SM_SKYDOME_ONLY) 3 - Full sky (SM_FULL)
public static Task<int> GetSkyMode()
Returns
GetSunDamage(PapyrusScript<Weather>)
Returns the sun damage percentage
public static Task<float> GetSunDamage(this PapyrusScript<Weather> self)
Parameters
selfPapyrusScript<Weather>
Returns
GetSunGlare(PapyrusScript<Weather>)
Returns the sun glare percentage
public static Task<float> GetSunGlare(this PapyrusScript<Weather> self)
Parameters
selfPapyrusScript<Weather>
Returns
GetWindDirection(PapyrusScript<Weather>)
Returns the wind direction in degrees (0-360)
public static Task<float> GetWindDirection(this PapyrusScript<Weather> self)
Parameters
selfPapyrusScript<Weather>
Returns
GetWindDirectionRange(PapyrusScript<Weather>)
Returns the wind direction range in degrees (0-180)
public static Task<float> GetWindDirectionRange(this PapyrusScript<Weather> self)
Parameters
selfPapyrusScript<Weather>
Returns
ReleaseOverride()
Tells the sky to release its overriding weather.
public static Task ReleaseOverride()
Returns
SetActive(PapyrusScript<Weather>, bool, bool)
Sets the active weather on the sky to be this weather.
[Obsolete("Uses the Papyrus virtual machine. Prefer Sky.SetWeather(Weather, bool, bool).", DiagnosticId = "SKYRIMFORGE0002")]
public static Task SetActive(this PapyrusScript<Weather> self, bool abOverride = false, bool abAccelerate = false)
Parameters
selfPapyrusScript<Weather>abOverrideboolabAcceleratebool