SetSourceRadius - GalaxHD551/lightstreamer GitHub Wiki

Description

The Source Radius simulates the size of the light source, it stands to reason that the reflection of the light will change in size to correlate.

Syntax

lr.SetSourceRadius(lightid, radius)

Parameters

  • lightid

    The light identifier.

  • radius

    The source radius.

Return Value

  • Returns true on success.

Exemple

lr = ImportPackage("lightstreamer")

function OnPackageStart()
	local light = lr.CreateLight("POINTLIGHT", 126016.046875, 81475.203125, 1550.0)
	SetSourceRadius(lightid, 150)
end
AddEvent("OnPackageStart", OnPackageStart)