SetVolumetricShadowsEnabled

From Multi Theft Auto: Wiki
Revision as of 20:24, 6 September 2024 by Prox (talk | contribs) (create new page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


Syntax

bool setVolumetricShadowsEnabled( bool state )

Required arguments

  • state: if set true it will enable the volumetric shadows, false otherwise.

Returns

Always returns true.

Example

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