IsRaining
From GECK
Link to TES4 Construction Set Wiki: IsRaining.
A function included in the GECK for Fallout 3.
Contents
Description
Returns 0 if the current weather is not classified as rain. Returns 1 if the current weather is stable and rainy.
Syntax
(0, 1:int) IsRaining
Example
if IsRaining
Notes
- In Fallout 3 and New Vegas, 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 rainy weather is in transition use this formula instead:
; This will let you do something if a rainy weather is half transitioned if IsRaining == 1 && GetCurrentWeatherPercent == 0.5