setVolumetricShadowsEnabled | Multi Theft Auto: Wiki Skip to content

setVolumetricShadowsEnabled

Client-side
Server-side
Shared

Manual Review Required

Please finish this page using the corresponding Old Wiki article. Go to Contribution guidelines for more information.


This function used to enable or disable volumetric shadows.

Syntax

bool setVolumetricShadowsEnabled ( bool state )
Required Arguments
  • state: if set true it will enable the volumetric shadows, false otherwise.

Returns

  • bool: value

Always returns true .

Code Examples

shared

This example check if volumetric shadows enabled, if not enabled then enable it and set the shadow alpha.

if not ( isVolumetricShadowsEnabled () ) then -- check if the volumetric shadows not enabled
setVolumetricShadowsEnabled ( true )
setWorldProperty ( "ShadowStrength", 500 ) -- set shadows alpha
else
setWorldProperty ( "ShadowStrength", 500 )
end

See Also

World Functions