RU/setWeather: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(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. …')
(No difference)

Revision as of 18:12, 7 March 2010

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!" )

Смотри также