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

Funkcja

getElementAngularVelocity

SerwerElementyIdentyczna z MTA:SA

Zwraca prędkość obrotu elementu wokół osi X, Y i Z.

Składnia

float getElementAngularVelocity(element theElement)

Argumenty

theElementelement
Element.

Zwraca

rx, ry, rz albo false.

Przykład

local rx, ry, rz = getElementAngularVelocity(vehicle)
if math.abs(rz) > 0.2 then
    outputChatBox("Kręcisz bączki!", getVehicleOccupant(vehicle))
end

Zobacz też