SetLightLoopRotation - GalaxHD551/lightstreamer GitHub Wiki
Description
Sets the light to rotate at some point in the given axis in each interval.
Syntax
lr.SetLightLoopRotation(lightid, xAxis, yAxis, zAxis[, interval])
Parameters
-
lightid
The light identifier.
-
xAxis
The X rotation to reach.
-
yAxis
The Y rotation to reach.
-
zAxis
The Z rotation to reach.
-
interval (optional)
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.SetLightIntensity(light, 10000)
lr.SetLightRandomLoopColor(light, 2000)
lr.SetLightLoopRotation(light, 1, 5, 10, 50)
end
AddEvent("OnPackageStart", OnPackageStart)