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

Function

engineGetPedModelBones

ClientGame engineTrilogy Hub only

Returns how the bones of a model from a file map to the game skeleton bones: a list of { hid, bone, occurrence }. Game animations drive the model through these bones.

Syntax

table engineGetPedModelBones(mesh mesh)

Arguments

meshmesh
A ped model.

Returns

A bone list or false.

Example

for _, b in ipairs(engineGetPedModelBones(engineLoadMesh("skiny/bohater.dff")) or {}) do
    outputChatBox(b.hid .. " -> " .. b.bone)
end

See also