- Dokumentacja
- Funkcje serwera
- getElementAngularVelocity
Funkcja
getElementAngularVelocity
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