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

Function

setElementBonePositionOffset

Server and clientElementsTrilogy Hub only

Changes the offset of an element attached to a bone, without re-attaching it. The element moves relative to the bone right away.

Syntax

bool setElementBonePositionOffset(element theElement, float x, y, z)

Arguments

theElementelement
An element attached with attachElementToBone.
x, y, zfloat
The new offset from the bone.

Returns

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

Example

setElementBonePositionOffset(box, 0.05, 0.15, 0)

See also