SetOuterConeAngle - GalaxHD551/lightstreamer GitHub Wiki
Description
Set the cone angle of the spotlight
Syntax
lr.SetOuterConeAngle(lightid, angle)
Parameters
-
lightid
The light identifier.
-
angle
The cone angle of the spotlight.
Return Value
- Returns true on success.
Exemple
lr = ImportPackage("lightstreamer")
function OnPackageStart()
local light = lr.CreateLight("SPOTLIGHT", 126016.046875, 81475.203125, 1550.0)
lr.SetOuterConeAngle(lightid, 40)
end
AddEvent("OnPackageStart", OnPackageStart)