SetLightLocation - GalaxHD551/lightstreamer GitHub Wiki

Description

Change the specified light's location.

Syntax

lr.SetLightLocation(lightid, x, y, z)

Parameters

  • lightid

    The light identifier.

  • x

    The Y axis.

  • z

    The Y axis.

  • z

    The Z axis.

Return Value

  • Returns true on success.

Exemple

lr = ImportPackage("lightstreamer")

function cmd_lightlocation(player)
        local x, y, z = GetPlayerLocatin(player)
        lr.SetLightLocation(lightid, x, y ,z)
	AddPlayerChat(player, "light location updated")
end
AddCommand("light", cmd_lightlocation)