SetWeatherBlended: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
{{Needs Checking|when trying it clientside it changed the weather instantly and not over a period of time --[[User:Norby89|Norby89]] 09:16, 5 August 2007 (CDT)}} | |||
{{Server client function}} | {{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 seconds. | This function will change the weather from the current weather (set using [[setWeather]]) to another weather state over a period of 60 seconds. |
Revision as of 14:16, 5 August 2007
This article needs checking. | |
Reason(s): when trying it clientside it changed the weather instantly and not over a period of time --Norby89 09:16, 5 August 2007 (CDT) |
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 foggy over the period of a minute.
-- Set the weather to sunny setWeather ( 0 ) -- Blend the weather to foggy setWeatherBlended ( 9 )
See Also
- areTrafficLightsLocked
- getAircraftMaxHeight
- getAircraftMaxVelocity
- getCloudsEnabled
- getFarClipDistance
- getFogDistance
- getGameSpeed
- getGravity
- getHeatHaze
- getInteriorSoundsEnabled
- getJetpackMaxHeight
- getMinuteDuration
- getMoonSize
- getOcclusionsEnabled
- getRainLevel
- getSunColor
- getSunSize
- getTime
- getTrafficLightState
- getWeather
- getWindVelocity
- getSkyGradient
- getPlayerBlurLevel
- getZoneName
- isGarageOpen
- removeWorldModel
- resetFarClipDistance
- resetFogDistance
- resetHeatHaze
- resetMoonSize
- resetRainLevel
- resetSkyGradient
- resetSunColor
- resetSunSize
- resetWindVelocity
- restoreAllWorldModels
- restoreWorldModel
- setAircraftMaxHeight
- setAircraftMaxVelocity
- setCloudsEnabled
- setFarClipDistance
- setFogDistance
- setGameSpeed
- setGarageOpen
- setGravity
- setHeatHaze
- setInteriorSoundsEnabled
- setMinuteDuration
- setMoonSize
- setOcclusionsEnabled
- setRainLevel
- setSkyGradient
- setSunColor
- setSunSize
- setTime
- setTrafficLightState
- setTrafficLightsLocked
- setWeather
- setWeatherBlended
- setWindVelocity
- setJetpackMaxHeight
- setPlayerBlurLevel