SetLightRandomLoopColor - GalaxHD551/lightstreamer GitHub Wiki
Description
Sets the specified light to change color at specified interval.
Syntax
lr.SetLightRandomLoopColor(lightid, interval)
Parameters
-
lightid
The light identifier.
-
interval
The interval in milliseconds.
Return Value
- Returns true on success.
Exemple
lr = ImportPackage("lightstreamer")
function OnPackageStart()
local light = lr.CreateLight("SPOTLIGHT", 126016.046875, 81475.203125, 1550.0)
lr.SetLightRandomLoopColor(light, 2000) -- The color will change every 2000 milliseconds
end
AddEvent("OnPackageStart", OnPackageStart)