int bone::getHandle ( int entityID,
string boneName
)
This function is needed in order to retrieve the bone handle index for the anim.setBlendMaskEntry() and anim.getBlendMaskEntry().
Parameters
entityID : The entity in the scene you wish to edit their bones.
boneName : The bone name to get the orientation.
Returns
boneHandleID: This is the internal handle to the bone inside the engine.
The following is a Small Example on how to use this function:
function onInit(objID)
boneHnd = bone.getHandle(obj, "Bip001_Head");
bone.setBlendMaskEntry(obj, "myAnimation", boneHnd, 0.5); -- apply animation on this bone by 50% all the time.
end
http://www.forum.aurasoft-skyline.co.uk/viewtopic.php?f=19&t=1128&p=5809&hilit=bone+attach#p5809
Users browsing this forum: No registered users and 1 guest