getElementRotation
Shared
Reads an element's rotation in degrees.
vec3|false getElementRotation(element element)
Parameters
| Name | Type | Description |
|---|---|---|
| element | element | The 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))