RU/setWeather

From Multi Theft Auto: Wiki
Revision as of 18:12, 7 March 2010 by PoliticalOrel (talk | contribs) (Created page with '__NOTOC__ {{RU/Server client function}} This function instantly sets the current weather id to the given value. To change the weather gradually, see setWeatherBlended. …')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This function instantly sets the current weather id to the given value.

To change the weather gradually, see setWeatherBlended.

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

bool setWeather ( int weatherID )

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

  • weatherID: The new weather id. Valid values are 0 to 255 inclusive.

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

Returns true if the weather was set succesfully, false if an invalid weatherID was specified.

Пример

Этот пример изменяет погоду в игре на туманную

setWeather ( 9 )
outputChatBox ( "Weather changed to foggy!" )

Смотри также