RU/setWeatherBlended

From Multi Theft Auto: Wiki
Revision as of 18:21, 7 March 2010 by PoliticalOrel (talk | contribs) (Created page with '__NOTOC__ {{RU/Server client function}} This function will change the weather from the current weather (set using setWeather) to another weather state over a period of 60 se…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This function will change the weather from the current weather (set using setWeather) to another weather state over a period of 60 seconds. The weather will be fully changed within 2 minutes. To ensure smooth weather transition, you should not call this function until getWeather indicates that no transition is already being done.

Использование

bool setWeatherBlended ( int weatherID )

Необходимые параметры

  • weatherID: The ID of the weather state you wish to set. Valid values are 0 to 255 inclusive.

Что возвращается

Returns true if successful, false if an invalid weatherID is passed.

Пример

This example sets the weather to sunny, then makes it change to a foggy over the period of a minute.

-- Set the weather to sunny
setWeather ( 0 )
-- Blend the weather to foggy
setWeatherBlended ( 9 )

Смотри также