CountChildren finding only root child

Blitz3D Forums/Blitz3D Programming/CountChildren finding only root child

Here's a wierd problem... I use Milkshape and export to B3D. CountChildren returns only the root joint, but FindChild can pick up any given joint of the model by name. I searched the forums and couldn't find anything on this. It's killing me because it would really speed up hit locations and some other stuff. Thanks for any help!

Those models got a hirachy

root
- Node1
- Node2
- - subnode1
- - - subsubnode1
- Node 3
- - anotherSubNode

so, if you countChildren on root you will get 3 nodes (Node1,Node2,Node3) .. if you counchildren on Node2 you will get 1 , only the subnode 1.

countChildren(node) only returns the direct childs of the node

Nicely done, thanks very much! I'll try this immediately.

You might find this useful:
http://www.blitzbasic.com/codearcs/codearcs.php?code=796