Change Layer during a blender runtime

I wonder if i could switch betwen layers under a game runtime in blender game engine?
if so: HOW TO DO IT??? :spin:

Iget a lot of problem if not, but i have loked on google and no results. I maby only searched for wrong tings but pleas help me!!!

You can’t.

I do not think there are “layers” in the BGE.

Objects on hidden (Blender) layers are accessable by KX_Scene.objectsInactive. See http://www.blender.org/documentation/249PythonDoc/GE/GameTypes.KX_Scene-class.html
These inactive objects are sources for addObject and replaceMesh.

The only exception I know is the lighting. Lamps influence only objects from layers where they are present. I do not know the internals regarding that. As far as I know you can’t change that during runtime.