GetEntityBoneRelativePosition

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

Gets the position of this bone relative to the entity its part of.

Syntax

Variation 1:

Vector3 API.getEntityBoneRelativePosition(LocalHandle entity, string boneName);

Required Arguments

  • entity: parameter input should be in LocalHandle type.
  • boneName: parameter input should be in string type.


Variation 2:

Vector3 API.getEntityBoneRelativePosition(LocalHandle entity, int boneIndex);

Required Arguments

  • entity: parameter input should be in LocalHandle type.
  • boneIndex: parameter input should be in int type.


NOTE: This function returns data in Vector3 type.

Usage example(s)

API.getEntityBoneRelativePosition(LocalHandle entity, string boneName);


References