SetLightFalloffExponent - GalaxHD551/lightstreamer GitHub Wiki
Description
Falloff is defined as the rate at which light loses its energy as it travels away from its source
Syntax
lr.SetLightFalloffExponent(lightid, exponent)
Parameters
-
lightid
The light identifier.
-
exponent
The exponent as a number value.
Return Value
- Returns true on success.
Exemple
lr = ImportPackage("lightstreamer")
function OnPackageStart()
local light = lr.CreateLight("POINTLIGHT", 126016.046875, 81475.203125, 1550.0)
lr.SetLightFalloffExponent(light, 8)
end
AddEvent("OnPackageStart", OnPackageStart)