Sets the state of the rain to on or off, plus sets the intensity of the rain (0 to 1)
| 292 | |
| 293 | // Sets the state of the rain to on or off, plus sets the intensity of the rain (0 to 1) |
| 294 | void SetSnowState(int on, float intensity) { |
| 295 | if (on) { |
| 296 | Weather.flags |= WEATHER_FLAGS_SNOW; |
| 297 | Weather.snow_intensity_scalar = intensity; |
| 298 | } else { |
| 299 | Weather.flags &= ~WEATHER_FLAGS_SNOW; |
| 300 | } |
| 301 | } |
| 302 | |
| 303 | // Sets the state of lightning to on or off, plus allows the setting of how often to check |
| 304 | // for lightning and the randomness at which lightning happens |
no outgoing calls
no test coverage detected