SetSourceHeight - GalaxHD551/lightstreamer GitHub Wiki

Description

Set the extent of the Rect Light along its local Z axis.

Syntax

lr.SetSourceHeight(lightid, height)

Parameters

  • lightid

    The light identifier.

  • height

    The height 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.SetSourceHeight(light, 100)
end
AddEvent("OnPackageStart", OnPackageStart)