- Documentation
- Client functions
- engineGetPedModelBones
Function
engineGetPedModelBones
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