SetElementBonePosition

From Multi Theft Auto: Wiki

BETA: FROM VERSION 1.5.8 r20704 ONWARDS
This function sets the position of a bone to the specified coordinates. Currently the following element types are accepted:
[[{{{image}}}|link=]] Tip: If you want to attach an element to a bone, see attachElementToBone

Syntax

bool setElementBonePosition ( element theElement, int bone, float x, float y, float z )

Required Arguments

  • theElement: the element to set the bone position on.
  • bone: the ID of the bone to set the position of. See Bone IDs
  • x: The x coordinate of the destination.
  • y: The y coordinate of the destination.
  • z: The z coordinate of the destination.

Returns

Returns true if the function was successful, false otherwise.

Example

Accessories-text-editor.png Script Example Missing Function SetElementBonePosition needs a script example, help out by writing one.

Before submitting check out Editing Guidelines Script Examples.


See Also

BETA: FROM VERSION 1.5.8 r20704 ONWARDS
BETA: FROM VERSION 1.5.8 r20704 ONWARDS
BETA: FROM VERSION 1.5.8 r20704 ONWARDS