- Dokumentacja
- Funkcje serwera
- getLightDirection
Funkcja
getLightDirection
Zwraca kierunek światła stożkowego.
Składnia
float, float, float getLightDirection(element theLight)Argumenty
theLightelement- Światło.
Zwraca
x, y, z albo false.
Przykład
local lamp = createLight(1, 0, 0, 5, 5, 255, 255, 255, 0, 0, -1)
local dx, dy, dz = getLightDirection(lamp)