IsCastingShadow
From MaratisWiki
isCastingShadow(object)
Check if light has shadow casting enabled.
-
object
: object to operate on
if isCastingShadow(lightObject) then -- Shadow casting is enabled else -- Shadow casting is disabled end
To enable or disable shadow casting use enableShadow