M MY Multiplayer: Wiki
Side
Kind

getElementRotation

Shared

Reads an element's rotation in degrees.

vec3|false getElementRotation(element element)

Parameters

NameTypeDescription
elementelementThe element to read.

Returns

A vec3 with the rotation in degrees, or false if the element has no rotation.

Example

local rotation = getElementRotation(localPlayer)
outputDebugString(("Heading: %d°"):format(rotation.z))

See also