SetLightDimension - GalaxHD551/lightstreamer GitHub Wiki

Description

Sets the dimension of this object. Players can only see objects in the same dimension.

  • Default dimension: 0
  • Maximum dimension: 4294967295

Syntax

lr.SetLightDimension(lightid, dimension)

Parameters

  • lightid

    The light identifier.

  • dimension

    The new dimension to set.

Return Value

  • Returns true on success.

Exemple

lr = ImportPackage("lightstreamer")

function cmd_lightdimension(player, lightid, dimension)
	if lightid == nil or dimension == nil then return end
        lr.SetObjectDimension(lightid, dimension)
	AddPlayerChat(player, "the light was set in the dimension: "..tostring(dimension))
end
AddCommand("light", cmd_lightdimension)