SetLightIntensity - GalaxHD551/lightstreamer GitHub Wiki
Description
Set the intensity of the light
Syntax
lr.SetLightIntensity(lightid, intensity)
Parameters
-
lightid
The light identifier.
-
intensity
The intensity to apply to the light, this an integer argument.
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.SetLightIntensity(lightid, 5000)
end
AddCommand("light", cmd_light)