FindChild problem
Community Forums/Developer Stations/FindChild problem
| ||
I've created a tree in Milkshape with two groups (child entities) called 'Trunk' and 'Leaves', then exported as a .B3D. So that I can fly, climb, etc through the leaves but bump into the trunk, I want to set the collisions separately: [CODE] parent = LoadAnimMesh("Tree1.b3d") child = FindChild(parent,"Leaves") If child <>0 EntityType child,0 EntityPickMode child,0 EndIf child = FindChild(parent,"Trunk") If child <>0 EntityType child,TYPE_OBJ, False EntityPickMode child,2 ; polygon EndIf [/CODE] But 'child' variable always returns 0, so they are never set. If I export as a .X file it works! I want to use .B3D if only because the scaling is correct, and for future compatibility. Anyone know what I am doing wrong? |
| ||
Sorry, I think this is now in the wrong forum. I'll put it in the general forum. |