Difference between revisions of "IsSnowing"

From the Fallout3 GECK Wiki
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. 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.
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