SerweryWłasny serwerDla twórcówForumFAQDokumentacjaBezpieczeństwo
Pobierz launcher
  1. Dokumentacja
  2. Funkcje serwera
  3. setSearchLightEndPosition

Funkcja

setSearchLightEndPosition

SerwerŚwiatłaIdentyczna z MTA:SA

Kieruje reflektor na nowy punkt.

Składnia

bool setSearchLightEndPosition(element theLight, float x, float y, float z)

Argumenty

theLightelement
Reflektor.
xfloat
X celu.
yfloat
Y celu.
zfloat
Z celu.

Zwraca

true przy powodzeniu.

Przykład

local light = createSearchLight(0, 0, 30, 0, 10, 0)
setSearchLightEndPosition(light, 10, 10, 0)

Zobacz też