transformable.getRotation

From GTA Connected
Jump to: navigation, search

Method Server Only All Games Online and Offline

Server 1.0.0

Vec3 transformable.getRotation(void)

Description

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

Parameters

Type Description
void This method doesn't take any parameters.

Returns

Success Returns

Type Description
Vec3 A Vec3 containing the rotation of the transformable, in XYZ euler angles.

Failure Returns

Type Value
Vec3 Vec3(0.0,0.0,0.0)

Types

This method can be used on types: Blip Building Civilian Entity Marker Object Ped Physical Player Transformable 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