FindChild problem

Miscellaneous Forums/Content Creation Tools/FindChild problem

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

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.