natiny.model.get_bone_weight

Lua
natiny.model.get_bone_weight(model, bone) -> weight

Returns how much of a bone the game has taken over from the animation.

Parameters

Name Type Description
model number Model handle
bone number Bone entity from get_bone

Returns

Type Description
number The weight, between 0 and 1; 0 for a bone that is not this model's

Example

Lua
local weight = natiny.model.get_bone_weight(hero, head)