ResetSkyGradient: Difference between revisions
Jump to navigation
Jump to search
(New page: __NOTOC__ {{Server client function}} This function allows restoring of a changed sky gradient as a result of setSkyGradient. ==Syntax== <syntaxhighlight lang="lua"> bool resetSkyGradient() </syntaxhighlight> ...) |
m (→Example) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 12: | Line 12: | ||
==Example== | ==Example== | ||
This | This example reset the sky gradient. | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
addCommandHandler("resetsky", | |||
function() | |||
resetSkyGradient() | |||
end | |||
) | |||
</syntaxhighlight> | </syntaxhighlight> | ||
==See Also== | ==See Also== | ||
{{World functions}} | {{World functions}} | ||
[[ | |||
[[ru:ResetSkyGradient]] |
Latest revision as of 18:44, 11 August 2010
This function allows restoring of a changed sky gradient as a result of setSkyGradient.
Syntax
bool resetSkyGradient()
Returns
Returns true if sky color was reset correctly, false otherwise.
Example
This example reset the sky gradient.
addCommandHandler("resetsky", function() resetSkyGradient() end )
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