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

Funkcja

getWindVelocity

Serwer i klientŚwiatIdentyczna z MTA:SA

Zwraca wiatr zapisany przez setWindVelocity. Na serwerze false, gdy nie ustawiono; na kliencie wtedy 0, 0, 0.

Składnia

float, float, float getWindVelocity()

Zwraca

x, y, z.

Przykład

local wx, wy = getWindVelocity()
outputDebugString(("Wiatr: %.2f %.2f"):format(wx, wy))

Zobacz też