M MY Multiplayer: Wiki
Lado
Tipo

getElementRotation

Compartilhado

Lê a rotação de um elemento em graus.

vec3|false getElementRotation(element element)

Parâmetros

NomeTipoDescrição
elementelementElemento 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))

Veja também