Entity Child Recursive Search

Blitz3D Forums/Blitz3D Programming/Entity Child Recursive Search

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.

Here is one way
Function core()
	; do it here
End Function


Function doMesh(m,xoff#,yoff#,zoff#)

	Local c
	Local childcount=CountChildren(m)
	
	If childcount
		For c=1 To childcount
			core m,xoff#,yoff#,zoff#
			doMesh GetChild(m,c),xoff#,yoff#,zoff#
		Next
	Else
		core m,xoff#,yoff#,zoff#
	EndIf
End Function