SetEntityQuaternion

From GT-MP
Jump to: navigation, search
SetEntityQuaternion
Client-Side Function
System-users.png Client-Side Javascript.png JavaScript

Sets the Quaternion of an Entity.

Syntax

In Javascript
Client-Side Function

Overload 1:

API.setEntityQuaternion(LocalHandle entity, float x, float y, float z, float w);

Required Arguments

  • entity: parameter input should be in LocalHandle type.
  • x: parameter input should be in float type.
  • y: parameter input should be in float type.
  • z: parameter input should be in float type.
  • w: parameter input should be in float type.


Overload 2:

API.setEntityQuaternion(LocalHandle entity, Quaternion quaternion);

Required Arguments

  • entity parameter input should be in LocalHandle type.
  • quaternion parameter input should be in Quaternion type.

Usage example(s)

In Javascript
Client-Side Function

API.setEntityQuaternion(LocalHandle entity, float x, float y, float z, float w);
API.setEntityQuaternion(LocalHandle entity, Quaternion quaternion);

References