SetSourceWidth - GalaxHD551/lightstreamer GitHub Wiki
Description
Set the extent of the Rect Light along its local Y axis.
Syntax
lr.SetSourceWidth(lightid, width)
Parameters
-
lightid
The light identifier.
-
width
The width of the source.
Return Value
- Returns true on success.
Exemple
lr = ImportPackage("lightstreamer")
function OnPackageStart()
local light = lr.CreateLight("RECTLIGHT", 126016.046875, 81475.203125, 1550.0)
lr.SetSourceWidth(light, 135)
end
AddEvent("OnPackageStart", OnPackageStart)