childrenRecursive
childrenRecursive
Returns a list of the children and children
of the children. (ie. children and grandchildren.)
Return type: list [ KX_GameObject ]
Sample Code
# get the controller
controller = GameLogic.getCurrentController()
# get the parent the controller is attached to
parent = controller.owner
# get a list of the children and 'grandchildren' game
objects
childList = parent.childrenRecursive
|