Difference between revisions of "Weather Script"

From the CreationKit Wiki
Jump to navigation Jump to search
imported>CraftySentinel
m (Updated SKSE functions.)
imported>Enter 77
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
__NOTOC__ __NOEDITSECTION__
'''Extends:''' [[Form Script]]
'''Extends:''' [[Form Script]]


Script for the manipulation of the weather.


Script for the manipulation of the weather.


== Definition ==
== Definition ==
Line 9: Line 8:
ScriptName Weather extends Form Hidden
ScriptName Weather extends Form Hidden
</source>
</source>


== Global Functions ==
== Global Functions ==


{|class="wikitable" width =100%
:'''Weather [[FindWeather - Weather|FindWeather]](Int ''auiType'')'''
!style="text-align:left;" width=25%|Function
:*Finds a weather from the currently occupied region or climate by the specified type.
!style="text-align:left;"|Description
|-


|[[FindWeather - Weather|Weather '''FindWeather'''(''Int'')]]
:'''Weather [[GetCurrentWeather - Weather|GetCurrentWeather]]()'''
|Finds a weather from the currently occupied region or climate by the specified type.
:*Gets the current weather.
|-


|[[GetCurrentWeather - Weather|Weather '''GetCurrentWeather'''()]]
:'''Float [[GetCurrentWeatherTransition - Weather|GetCurrentWeatherTransition]]()'''
|Gets the current weather.
:*Returns a value from 0.0 to 1.0 describing how far in the current weather has transitioned.
|-


|[[GetCurrentWeatherTransition - Weather|Float '''GetCurrentWeatherTransition'''()]]
:'''Weather [[GetOutgoingWeather - Weather|GetOutgoingWeather]]()'''
|Returns a value from 0.0 to 1.0 describing how far in the current weather has transitioned.
:*Gets the weather which is currently transitioning out.
|-


|[[GetOutgoingWeather - Weather|Weather '''GetOutgoingWeather'''()]]
:'''Int [[GetSkyMode - Weather|GetSkyMode]]()'''
|Gets the weather which is currently transitioning out.
:*Gets a code representing the mode the sky is currently in.
|-


|[[GetSkyMode - Weather|Int '''GetSkyMode'''()]]
:'''[[ReleaseOverride - Weather|ReleaseOverride()]]
|Gets a code representing the mode the sky is currently in.
:*Tells the sky to release its overriding weather.
|-


|[[ReleaseOverride - Weather|'''ReleaseOverride'''()]]
|Tells the sky to release its overriding weather.


|}
== Member Functions ==
== Member Functions ==


{|class="wikitable" width =100%
:'''[[ForceActive - Weather|ForceActive]](Bool ''abOverride'')'''
!style="text-align:left;" width=25%|Function
:*Forces this to be the active weather immediately, without transition.
!style="text-align:left;"|Description
|-
 
|[[ForceActive - Weather|'''ForceActive'''(''Bool'')]]
|Forces this to be the active weather immediately, without transition.
|-


|[[GetClassification - Weather|Int '''GetClassification'''()]]
:'''Int [[GetClassification - Weather|GetClassification]]()'''
|Gets the classification code for this weather object.
:*Gets the classification code for this weather object.
|-


|[[SetActive - Weather|'''SetActive'''(''Bool, Bool'')]]
:'''[[SetActive - Weather|SetActive]](Bool ''abOverride'', Bool ''abAccelerate'')'''
|Sets the active weather on the sky to be this weather.
:*Sets the active weather on the sky to be this weather.
 
|}


== SKSE Member Functions ==
== SKSE Member Functions ==


{|class="wikitable" width =100%
:'''Float [[GetSunGlare - Weather|GetSunGlare]]()'''
!style="text-align:left;" width=25%|Function
:*Gets the sun glare percentage.
!style="text-align:left;"|Description
|-
|[[GetSunGlare - Weather|Float '''GetSunGlare'''()]]
|Gets the sun glare percentage.
|-
 
|[[GetSunDamage - Weather|Float '''GetSunDamage'''()]]
|Gets the sun damage percentage.
|-


|[[GetWindDirection - Weather|Float '''GetWindDirection'''()]]
:'''Float [[GetSunDamage - Weather|GetSunDamage]]()'''
|Gets the wind direction in degrees.
:*Gets the sun damage percentage.
|-


|[[GetWindDirectionRange - Weather|Float '''GetWindDirectionRange'''()]]
:'''Float [[GetWindDirection - Weather|GetWindDirection]]()'''
|Gets the wind direction range in degrees.
:*Gets the wind direction in degrees.
|-


|[[GetFogDistance - Weather|Float '''GetFogDistance'''(''Bool, Int'')]]
:'''Float [[GetWindDirectionRange - Weather|GetWindDirectionRange]]()'''
|Gets the fog distance of the specified type.
:*Gets the wind direction range in degrees.


|}
:'''Float [[GetFogDistance - Weather|GetFogDistance]](Bool ''day'', Int ''type'')'''
:*Gets the fog distance of the specified type.





Latest revision as of 03:58, 30 December 2014

Extends: Form Script

Script for the manipulation of the weather.


Definition[edit | edit source]

ScriptName Weather extends Form Hidden


Global Functions[edit | edit source]

Weather FindWeather(Int auiType)
  • Finds a weather from the currently occupied region or climate by the specified type.
Weather GetCurrentWeather()
  • Gets the current weather.
Float GetCurrentWeatherTransition()
  • Returns a value from 0.0 to 1.0 describing how far in the current weather has transitioned.
Weather GetOutgoingWeather()
  • Gets the weather which is currently transitioning out.
Int GetSkyMode()
  • Gets a code representing the mode the sky is currently in.
ReleaseOverride()
  • Tells the sky to release its overriding weather.


Member Functions[edit | edit source]

ForceActive(Bool abOverride)
  • Forces this to be the active weather immediately, without transition.
Int GetClassification()
  • Gets the classification code for this weather object.
SetActive(Bool abOverride, Bool abAccelerate)
  • Sets the active weather on the sky to be this weather.

SKSE Member Functions[edit | edit source]

Float GetSunGlare()
  • Gets the sun glare percentage.
Float GetSunDamage()
  • Gets the sun damage percentage.
Float GetWindDirection()
  • Gets the wind direction in degrees.
Float GetWindDirectionRange()
  • Gets the wind direction range in degrees.
Float GetFogDistance(Bool day, Int type)
  • Gets the fog distance of the specified type.