ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Client functions
  3. getPedBoneIndexForMta

Function

getPedBoneIndexForMta

ClientPedsTrilogy Hub only

Translates a bone number used by existing scripts (e.g. 8 = head, 25 = right hand) into a bone index in the Definitive Edition skeleton. Useful when porting existing scripts that use bone numbers. Returns false when the bone has no counterpart in the new skeleton.

Syntax

int getPedBoneIndexForMta(int boneId)

Arguments

boneIdint
Bone number (as in getBoneIDs).

Returns

Game bone index, or false.

Example

outputChatBox("Głowa 8 = kość gry " .. tostring(getPedBoneIndexForMta(8)))

See also