Difference between revisions of "IsSnowing"

From the Fallout3 GECK Wiki
Jump to navigation Jump to search
imported>Skingrad24
imported>Ez0n3
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
=='''Syntax:'''==
{{Function
  IsSnowing  
|CSWikiPage = IsSnowing
|origin = GECK1
|summary = Returns 0 if the current weather is not classified as snow. Returns 1 if the current weather is stable and snowy.
|name = IsSnowing
|returnVal = 0, 1
|returnType = int
  |example = if IsSnowing
}}


Returns 0 if the current weather is not classified as snow. Greater than 0 and less than 1 means the weather is transitioning to a snowy weather. 1 means that the weather is stable and snowing.
==Notes==
*In fallout, instead of working like in Oblivion and like IsPleasant and IsCloudy, it cannot return a value different from 0 and 1. So if you need to know when a snowy weather is in transition use this formula instead:


=='''See Also'''==
  ; This will let you do something if a snowy weather is half transitioned
  if IsSnowing == 1 && GetCurrentWeatherPercent == 0.5


==See Also==
*[[GetCurrentWeatherPercent]]
*[[IsCloudy]]
*[[IsCloudy]]
*[[IsRaining]]
*[[IsRaining]]
*[[IsPleasant]]
*[[IsPleasant]]
*Link to TES4 Construction Set Wiki: [http://cs.elderscrolls.com/constwiki/index.php/IsSnowing IsSnowing].


[[Category:Functions]]
[[Category:Functions]]
[[Category:Functions (GECK 1.1)]]
[[Category:Weather Functions]]
[[Category:Weather Functions]]
[[Category:Weather Functions (GECK 1.1)]]
[[Category:Condition Functions]]
[[Category:Condition Functions]]
[[Category:Condition Functions (GECK 1.1)]]

Latest revision as of 06:09, 12 January 2011

< [[::Category:Functions|Category:Functions]]

Link to TES4 Construction Set Wiki: IsSnowing.

A function included in the GECK version 1.1.0.36.

Description

Returns 0 if the current weather is not classified as snow. Returns 1 if the current weather is stable and snowy.

Syntax

[help]
(0, 1:int) IsSnowing

Example

if IsSnowing

Notes

  • In fallout, instead of working like in Oblivion and like IsPleasant and IsCloudy, it cannot return a value different from 0 and 1. So if you need to know when a snowy weather is in transition use this formula instead:
 ; This will let you do something if a snowy weather is half transitioned
 if IsSnowing == 1 && GetCurrentWeatherPercent == 0.5

See Also