RU/setCloudsEnabled
Jump to navigation
Jump to search
This function will enable or disable clouds. This is useful for race maps which are placed high up as clouds can cause low FPS.
Использование
bool setCloudsEnabled ( bool enabled )
Необходимые параметры
- enabled: A boolean value determining if clouds should be shown. Use true to show clouds and false to hide them.
Что возвращается
Returns true if the cloud state was changed succesfully, false if an invalid argument was specified.
Пример
Click to collapse [-]
СерверThis example Disables clouds for all players
function disableClouds () setCloudsEnabled ( false ) -- Hide the clouds for all players when the resource starts end addEventHandler ( "onResourceStart", getResourceRootElement(getThisResource()), disableClouds )
Смотри также
- areTrafficLightsLocked
- getCloudsEnabled
- getGameSpeed
- getGravity
- getHeatHaze
- getJetpackMaxHeight
- getMinuteDuration
- getSkyGradient
- getTime
- getTrafficLightState
- getVehiclesLODDistance
- getWeather
- getZoneName
- isGarageOpen
- resetSkyGradient
- resetHeatHaze
- setCloudsEnabled
- setGameSpeed
- setGarageOpen
- setGravity
- setHeatHaze
- setMinuteDuration
- setSkyGradient
- setTime
- setTrafficLightState
- setTrafficLightsLocked
- setVehiclesLODDistance
- setWeather
- setWeatherBlended
- setInteriorSoundsEnabled
- getInteriorSoundsEnabled
- setRainLevel
- getRainLevel
- resetRainLevel
- setSunSize
- getSunSize
- resetSunSize
- setSunColor
- getSunColor
- resetSunColor
- setWindVelocity
- getWindVelocity
- resetWindVelocity
- setFarClipDistance
- getFarClipDistance
- resetFarClipDistance
- setFogDistance
- getFogDistance
- resetFogDistance
- removeWorldModel
- restoreWorldModel
- restoreAllWorldModels
- setOcclusionsEnabled
- getOcclusionsEnabled
- setJetpackWeaponEnabled
- getJetpackWeaponEnabled
- setAircraftMaxVelocity
- getAircraftMaxVelocity
- setMoonSize
- getMoonSize
- resetMoonSize