Have 1 object map all of the hierarchy of children/parents?

how would I have 1 object look through all objects parented to it, or that it was parented to, for a property?

say

own[‘Gun’]?

I know it’s a for loop,

I then need to build a list from it,

for obj in own.childrenRecursive:
if “Gun” in obj:
dostuff()
pass

Thanks goose :smiley: