Iterate through child entities

Blitz3D Forums/Blitz3D Programming/Iterate through child entities

_33(Posted 2007) [#1]
I'm trying to make functions to modify grids of entities that are child of a mesh entity. I would like to know if I could iterate through the child entities. if so, would FindChild help me go through all the child entities. or how would you go about doing so?

I found this thread, but I have my doubt on the need for having complex recursive trickery just to pass through 1 level of child entities.
http://www.blitzbasic.com/Community/posts.php?topic=63653#710347


b32(Posted 2007) [#2]
Maybe you could use the CountChildren command with the GetChild command ? Else, try Beakers NextChild function:
http://www.blitzbasic.co.nz/codearcs/codearcs.php?code=796


_33(Posted 2007) [#3]
Thanks b32!