GetCloudsEnabled: Difference between revisions
Jump to navigation
Jump to search
Cazomino05 (talk | contribs) (added getCloudsEnabled) |
No edit summary |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 4: | Line 4: | ||
==Syntax== | ==Syntax== | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
bool getCloudsEnabled( ) | bool getCloudsEnabled () | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Line 13: | Line 12: | ||
==Example== | ==Example== | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
function areCloudsVisible() | |||
if getCloudsEnabled() then | |||
outputChatBox("Clouds are visible.") | |||
else | |||
outputChatBox("Clouds are not visible.") | |||
end | |||
end | |||
addCommandHandler("clouds", areCloudsVisible) | |||
</syntaxhighlight> | </syntaxhighlight> | ||
==See Also== | |||
{{World functions}} | |||
[[ru:getCloudsEnabled]] |
Latest revision as of 18:34, 7 March 2010
This function will tell you if clouds are enabled or disabled.
Syntax
bool getCloudsEnabled ()
Returns
Returns true if the clouds are enabled or false if clouds are disabled.
Example
function areCloudsVisible() if getCloudsEnabled() then outputChatBox("Clouds are visible.") else outputChatBox("Clouds are not visible.") end end addCommandHandler("clouds", areCloudsVisible)
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