SetCastShadows - GalaxHD551/lightstreamer GitHub Wiki
Description
Sets whether this light casts shadows
Syntax
lr.SetCastShadows(lightid, bEnable)
Parameters
-
lightid
The light identifier.
-
bEnable
The boolean value.
Return Value
- Returns true on success.
Exemple
lr = ImportPackage("lightstreamer")
function cmd_light(player)
local x, y, z = GetPlayerLocation(player)
lightid = lr.CreateLight("SPOTLIGHT", x, y, z)
Delay(function()
lr.SetCastShadows(lightid, false)
AddPlayerChat(player, "the light will not produce shadow")
end, 1500)
end
AddCommand("light", cmd_light)