- Documentation
- Shared functions
- setWeatherBlended
Function
setWeatherBlended
Schedules a smooth weather change: the server switches to the new weather after about two game hours.
Syntax
bool setWeatherBlended(int weather)Arguments
weatherint- Target weather number 0-255.
Returns
true on success.
Example
setWeatherBlended(8)
Notes
Client. In a client script - a weather transition for this player only.
See also
setWeatherChanges the weather immediately for every player. Numbers 0-22 are San Andreas weathers, e.g. 0 extra sunny, 1-7 different mixes of sun and clouds, 8 storm, 9 fog, 16 rain, 19 sandstorm. It stops a smooth change started withsetWeatherBlended.getWeatherReturns the current weather and the weather a smooth change fromsetWeatherBlendedis heading towards (ornil).