SerweryWłasny serwerDla twórcówForumFAQDokumentacjaBezpieczeństwo
Pobierz launcher
  1. Dokumentacja
  2. Funkcje wspólne
  3. getModelSeatPosition

Funkcja

getModelSeatPosition

Serwer i klientPojazdyTylko Trilogy Hub

Zwraca aktualne miejsce fotela dla modelu oraz źródło tych danych: script (ustawione skryptem), dummy (z punktu pomocniczego modelu) albo default (fabryczne z gry).

Składnia

float, float, float, float, string getModelSeatPosition(int model, int seat)

Argumenty

modelint
ID modelu pojazdu.
seatint
Fotel 0-7.

Zwraca

x, y, z (metry, układ pojazdu), heading (stopnie), źródło; false, gdy nieznane.

Przykład

local x, y, z, heading, source = getModelSeatPosition(411, 0)
if x then outputDebugString(("Kierowca: %.2f %.2f %.2f (%s)"):format(x, y, z, source)) end

Zobacz też