Difference between revisions of "IsSnowing"
Jump to navigation
Jump to search
imported>Skingrad24 |
imported>Skingrad24 |
||
Line 2: | Line 2: | ||
IsSnowing | IsSnowing | ||
Returns 0 if the current weather is not classified as snow. | Returns 0 if the current weather is not classified as snow. Returns 1 if the current weather is stable and snowy. | ||
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: | |||
<pre> | |||
if IsSnowing == 1 && GetCurrentWeatherPercent == 0.5 | |||
</pre> | |||
This let you do something if a snowy weather is half transitioned | |||
=='''See Also'''== | =='''See Also'''== | ||
*[[GetCurrentWeatherPercent]] | |||
*[[IsCloudy]] | *[[IsCloudy]] | ||
*[[IsRaining]] | *[[IsRaining]] |
Revision as of 06:03, 22 July 2009
Syntax:
IsSnowing
Returns 0 if the current weather is not classified as snow. Returns 1 if the current weather is stable and snowy. 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:
if IsSnowing == 1 && GetCurrentWeatherPercent == 0.5
This let you do something if a snowy weather is half transitioned
See Also
- GetCurrentWeatherPercent
- IsCloudy
- IsRaining
- IsPleasant
- Link to TES4 Construction Set Wiki: IsSnowing.