FindChild problem

Community Forums/Developer Stations/FindChild problem

John Blackledge(Posted 2004) [#1]
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:
parent = LoadAnimMesh("Tree1.b3d")
child = FindChild(parent,"Leaves")
If child <>0
EntityType child,0
EntityPickMode child,0
child = FindChild(parent,"Trunk")
If child <>0
EntityType child,TYPE_OBJ, False
EntityPickMode child,2 ; polygon

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?

John Blackledge(Posted 2004) [#2]
Sorry, I think this is now in the wrong forum. I'll put it in the general forum.