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

Funkcja

getVehicleTurretPosition

SerwerPojazdyIdentyczna z MTA:SA

Zwraca obrót wieżyczki zapisany przez setVehicleTurretPosition (poziomy, pionowy w radianach; domyślnie 0, 0).

Składnia

float, float getVehicleTurretPosition(vehicle vehicle)

Argumenty

vehiclevehicle
Pojazd.

Zwraca

Obrót poziomy i pionowy.

Przykład

local tank = createVehicle(432, 300, 1900, 18)
local h, v = getVehicleTurretPosition(tank)

Zobacz też