IsVolumetricShadowsEnabled: Difference between revisions
Jump to navigation
Jump to search
(Created page with "{{Client function}} __NOTOC__ {{Added feature/item|1.6.1|1.6.0|22716| This function is used to check whether the shadow enabled or not. }} ==Syntax== <syntaxhighlight lang="lua"> bool isVolumetricShadowsEnabled () </syntaxhighlight> ===Returns=== Returns ''true'' if enabled, ''false'' otherwise. ==Example== This example check if volumetric shadows enabled or not. <syntaxhighlight lang="lua"> addCommandHandler('isvolumetricshadows', function() print(isVolumetri...") |
mNo edit summary |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{Client function}} | {{Client function}} | ||
__NOTOC__ | __NOTOC__ | ||
{{Added feature/item|1.6.1|1.6.0| | {{Added feature/item|1.6.1|1.6.0|22721| | ||
This function is used to check whether the shadow enabled or not. | This function is used to check whether the shadow enabled or not. | ||
}} | }} | ||
Line 14: | Line 14: | ||
==Example== | ==Example== | ||
This example check if volumetric shadows enabled or not. | This example used a command to check if volumetric shadows enabled or not. | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
addCommandHandler('isvolumetricshadows', function() | addCommandHandler('isvolumetricshadows', function() | ||
Line 22: | Line 22: | ||
==See Also== | ==See Also== | ||
{{World functions}} | {{World functions|client}} |
Latest revision as of 16:53, 10 September 2024
Syntax
bool isVolumetricShadowsEnabled ()
Returns
Returns true if enabled, false otherwise.
Example
This example used a command to check if volumetric shadows enabled or not.
addCommandHandler('isvolumetricshadows', function() print(isVolumetricShadowsEnabled()) end)
See Also
- createSWATRope
- getBirdsEnabled
- getCoronaReflectionsEnabled
- getGarageBoundingBox
- getGaragePosition
- getGarageSize
- getGroundPosition
- getInteriorFurnitureEnabled
- getNearClipDistance
- getPedsLODDistance
- getRoofPosition
- getScreenFromWorldPosition
- getVehiclesLODDistance
- getWorldFromScreenPosition
- isAmbientSoundEnabled
- isLineOfSightClear
- isWorldSoundEnabled
- processLineOfSight
- resetAmbientSounds
- resetBlurLevel
- resetColorFilter
- resetCoronaReflectionsEnabled
- resetNearClipDistance
- resetPedsLODDistance
- resetVehiclesLODDistance
- resetWorldSounds
- setAmbientSoundEnabled
- setBirdsEnabled
- setColorFilter
- setCoronaReflectionsEnabled
- setInteriorFurnitureEnabled
- setInteriorSoundsEnabled
- setNearClipDistance
- setPedsLODDistance
- setVehiclesLODDistance
- setWorldSoundEnabled
- testLineAgainstWater
- 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