To find the names all children in a mesh, use this:
After finding out the name of the bone, use "bone = FindChild(mesh, name$)" (or "bone = GetChild(mesh, index)" if you know the index) to get a handle without using this routine. Then use "Entityparent sword, bone" and maybe PositionEntity sword, 0, 0, 0
Graphics3D 800, 600, 0, 2 PrintOutName(LoadAnimMesh("c:\_xfiles\mak_robotic.x")) WaitKey() End Global c Function PrintOutName(mesh, id = 0) Print String$(" ", id) + EntityName$(mesh) + "<" c = c + 1 If c = 20 Then c = 0 Print "Press any key" FlushKeys() WaitKey() FlushKeys() End If For i = 1 To CountChildren(mesh) PrintOutName(GetChild(mesh, i), id + 1) Next End Function
After finding out the name of the bone, use "bone = FindChild(mesh, name$)" (or "bone = GetChild(mesh, index)" if you know the index) to get a handle without using this routine. Then use "Entityparent sword, bone" and maybe PositionEntity sword, 0, 0, 0