GetLightDimension - GalaxHD551/lightstreamer GitHub Wiki
Description
Gets the dimension of this light.
Syntax
lr.GetLightDimension(lightid)
Parameters
-
lightid
The light identifier.
Return Value
- Returns the dimension.
Exemple
lr = ImportPackage("lightstreamer")
function cmd_light(player, lightid)
local dimension = lr.GetLightDimension(lightid)
AddPlayerChat(player, "LightID :"..lightid.."is in the dimension : "..dimension)
end
AddCommand("light", cmd_light)