SetLightFlash - GalaxHD551/lightstreamer GitHub Wiki
Description
To set the light flashing in a given interval
Syntax
lr.SetLightFlash(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.SetLightFlash(light, 500) -- Will flash every 500 milliseconds
end
AddEvent("OnPackageStart", OnPackageStart)