element.getRotation

Revision as of 15:53, 26 December 2021 by Vortrex (talk | contribs)

Method Server Only icon-iii.png icon-vc.png icon-sa.png icon-iv.png Online and Offline

Available since Server 1.0.0

Vec3 element.getRotation(void)

The element.getRotation method is used to fetch the 3D rotation for the element, in XYZ euler angles, in radians.

Parameters

void This method doesn't take any parameters.

Return

Vec3 A Vec3 containing the rotation of the element, in XYZ euler angles, in radians.

Types

Shared Blip
Shared Building
Shared Element
Shared Entity
Shared Marker
Shared Object
Shared Ped
Shared Physical
Shared Player
Shared Vehicle

Notes

  • This function is computationally expensive, use Entity.heading instead if you only need to fetch the Z rotation.

Examples

There aren't any examples for this method.

Compatibility

There isn't any compatibility information for this method.

Related

Server Related

        destroyElement
        getElementCount
        getElementFromId
        getElementFromName
        getElements
        getElementsByType

        element.children
        element.clearExistsFor
        element.dimension
        element.existsFor
        element.getData
        element.getRotation
        element.id
        element.isCreatedFor
        element.isLocal
        element.isOwner
        element.isSyncer
        element.isType
        element.name
        element.netFlags
        element.parent
        element.position
        element.removeAllData
        element.removeData
        element.resource
        element.rotation
        element.setData
        element.setExistsFor
        element.setRotation
        element.setSyncer
        element.streamInDistance
        element.streamOutDistance
        element.syncer
        element.syncerId
        element.type