- Dokumentacja
- Funkcje wspólne
- getElementRotation
Funkcja
getElementRotation
Zwraca obrót elementu w stopniach.
Składnia
float getElementRotation(element theElement)Argumenty
theElementelement- Element.
Różnice względem MTA:SA
- Tych argumentów z MTA:SA tu nie ma:
string rotOrder = "default"
W MTA:SA
getElementRotation(element theElement, string rotOrder = "default")Zwraca
rx, ry, rz albo false.
Przykład
local _, _, rz = getElementRotation(player)
outputChatBox(("Patrzysz na %.0f°"):format(rz), player)