Anyone have any good code for finding all the children of an entity, and their children?
Entity Child Recursive Search
Blitz3D Forums/Blitz3D Programming/Entity Child Recursive Searchtype child field child ;yes you can do this end type if countchildren(entity)>0 then for childcount = 1 to countchildren(entity) child=getchild(entity,childcount) if child>0 then for i = 1 to countchildren(child) entity.child = new child entity\child=getchild(child,i) next end if next end ifuntested. At work :(
+BlackD
This is my very handy solution (to many things):
http://www.blitzbasic.com/codearcs/codearcs.php?code=796
http://www.blitzbasic.com/codearcs/codearcs.php?code=796