Player::getBoneCoords: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
 
(Added link to list of bones)
 
Line 1: Line 1:
Gets the position of the specified bone of the specified player.<br><br>ped: The ped to get the position of a bone from.<br>boneId: The ID of the bone to get the position from. This is NOT the index.<br>offsetX: The X-component of the offset to add to the position relative to the bone's rotation.<br>offsetY: The Y-component of the offset to add to the position relative to the bone's rotation.<br>offsetZ: The Z-component of the offset to add to the position relative to the bone's rotation.
Gets the position of the specified bone of the specified player.<br><br>ped: The ped to get the position of a bone from.<br>boneId: The ID of the bone to get the position from. This is NOT the index.<br>offsetX: The X-component of the offset to add to the position relative to the bone's rotation.<br>offsetY: The Y-component of the offset to add to the position relative to the bone's rotation.<br>offsetZ: The Z-component of the offset to add to the position relative to the bone's rotation.<br><br>[https://wiki.rage.mp/index.php?title=Bones List of bones]
==Syntax==
==Syntax==
<syntaxhighlight lang="javascript">player.getBoneCoords(boneId, offsetX, offsetY, offsetZ);</syntaxhighlight>
<syntaxhighlight lang="javascript">player.getBoneCoords(boneId, offsetX, offsetY, offsetZ);</syntaxhighlight>

Latest revision as of 18:50, 21 April 2019

Gets the position of the specified bone of the specified player.

ped: The ped to get the position of a bone from.
boneId: The ID of the bone to get the position from. This is NOT the index.
offsetX: The X-component of the offset to add to the position relative to the bone's rotation.
offsetY: The Y-component of the offset to add to the position relative to the bone's rotation.
offsetZ: The Z-component of the offset to add to the position relative to the bone's rotation.

List of bones

Syntax

player.getBoneCoords(boneId, offsetX, offsetY, offsetZ);

Required Arguments

  • boneId: int
  • offsetX: float
  • offsetY: float
  • offsetZ: float

Return value

  • Vector3

Example

// todo

See also