GetClassification - Weather

From Creation Kit
Jump to: navigation, search

Member of: Weather Script

Gets this weather's classification, as specified in the editor.

Syntax

int function GetClassification() native

Parameters

None.

Return Value

  • -1: No classification
  • 0: Pleasant
  • 1: Cloudy
  • 2: Rainy
  • 3: Snow

Examples

; See if the weather is cloudy
if SomeWeather.GetClassification() == 1
  DebugTrace("Some weather is cloudy")
endIf

Notes

The weather settings which correspond to these values can be found on the Precipitation tab in the Weather Dialog in the Creation Kit (under "Weather Classification").

See Also