getElementRotation
Compartilhado
Lê a rotação de um elemento em graus.
vec3|false getElementRotation(element element)
Parâmetros
| Nome | Tipo | Descrição |
|---|---|---|
| element | element | Elemento a ler. |
Retorno
Um vec3 com a rotação em graus, ou false se o elemento não tem rotação.
Exemplo
local rotation = getElementRotation(localPlayer)
outputDebugString(("Heading: %d°"):format(rotation.z))