- Dokumentacja
- Funkcje serwera
- getVehicleComponentRotation
Funkcja
getVehicleComponentRotation
Zwraca obrót części zapisany przez setVehicleComponentRotation (0, 0, 0, gdy nie ustawiono).
Składnia
float, float, float getVehicleComponentRotation(vehicle vehicle, string component)Argumenty
vehiclevehicle- Pojazd.
componentstring- Nazwa części.
Różnice względem MTA:SA
- Tych argumentów z MTA:SA tu nie ma:
string base = "parent"
W MTA:SA
getVehicleComponentRotation(vehicle theVehicle, string theComponent, string base = "parent")Zwraca
Obrót x, y, z w stopniach.
Przykład
local vehicle = createVehicle(411, 2000, -1690, 13.5)
local rx = getVehicleComponentRotation(vehicle, "bonnet_dummy")