SetLightIntensityUnits - GalaxHD551/lightstreamer GitHub Wiki

Description

Set the units used for the intensity of the light.

Syntax

lr.SetLightIntensityUnits(lightid, ELightUnits)

Parameters

  • lightid

    The light identifier.

  • ELightUnits

    The units to apply. Can be Unitless, Candelas, Lumens.

Return Value

  • Returns true on success.

Exemple

lr = ImportPackage("lightstreamer")

function cmd_light(player)
	local x, y, z = GetPlayerLocation(player)
        lightid = lr.CreateLight("POINTLIGHT", x, y, z)
        lr.SetLightIntensityUnits(lightid, Candelas)
	
end
AddCommand("light", cmd_light)