- Dokumentacja
- Funkcje serwera
- setLightColor
Funkcja
setLightColor
Zmienia kolor światła.
Składnia
bool setLightColor(element theLight, int r, int g, int b)Argumenty
theLightelement- Światło.
rint- Czerwony 0-255.
gint- Zielony 0-255.
bint- Niebieski 0-255.
Zwraca
true przy powodzeniu.
Przykład
local lamp = createLight(0, 0, 0, 5)
setLightColor(lamp, 0, 0, 255)