Getting current controller of children, or something.

Ok, so I know that one may access one’s children like so:

controller = bge.logic.getCurrentController()
self = controller.owner

self.children[someNumber]

and access sensors like so:

controller = bge.logic.getCurrentController()
controller.sensors['whatever']

So how would I access sensors of the children of the object running the script?

Any help is appreciated.

PS, I can’t just have the child run another function* and pass the value to the first function*, because there will be more than one of these’s child/parent pairs running around.

*Python controller in module mode.

Have a look at the BGE API. You will find it there.

But why are you trying to do this? Such things tend to become a maintenance nightmare.

I did use the API, and couldn’t find what I was looking for.
Maybe I’m just awful at finding things…

What exactly do you mean ‘maintenance nightmare’?

Oh, whoops. Just had a second look at the API and found it.

I feel like a idiot.

I mean you create a hidden dependency to one or more other objects. The nightmare comes when you change something in your scene (e.g. you rename an object) and something else that seems completely unrelated stops working or does crazy things. Finding this relationship is usually pretty annoying. Just a hint.