StopLightFlash - GalaxHD551/lightstreamer GitHub Wiki

Description

To stop SetLightFlash of a given light

Syntax

lr.StopLightFlash(lightid)

Parameters

  • lightid

    The light identifier.

Return Value

  • Returns true on success.

Exemple

lr = ImportPackage("lightstreamer")

function cmd_stoplight(player, lightid)
        if lightid == nil then return end
        StopLightFlash(lightid)
	AddPlayerChat(player, "flash has been canceled")	
end
AddCommand("light", cmd_stoplight)