SetWeatherBlended

From Multi Theft Auto: Wiki
Revision as of 13:40, 20 May 2006 by EAi (talk | contribs)
(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.

Syntax

bool setWeatherBlended ( int weatherID )

Required Arguments

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

Returns

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

Example

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

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

See Also

Template:World Functions