ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Shared functions
  3. setElementBoneRotationOffset

Function

setElementBoneRotationOffset

Server and clientElementsTrilogy Hub only

Changes the rotation of an element attached to a bone, without re-attaching it.

Syntax

bool setElementBoneRotationOffset(element theElement, float rx, ry, rz)

Arguments

theElementelement
An element attached with attachElementToBone.
rx, ry, rzfloat
The new rotation relative to the bone in degrees.

Returns

true on success, false if the element is not attached to a bone.

Example

setElementBoneRotationOffset(box, 0, 90, 0)

See also