This is a rough draft to turn from pseudo code into code
Check all children and parents, if they have the property target, and my own target does not equal “Empty”
change their target to mine.
import bge Children = own.childrenRecursive for objects in Children if own['Target'] != null // how do I check to see if a property exists? object['Target'] = own['Target']
Any help thinking this through would be appreciated,
is there any way to check if a item is the “root” of a object hierarchy?
I need to get a list of all items linked to a gameobject with parenting.
So all the way to the “root”