Help with scripting! I want to script scene overlay!

How do I use a Always sensor -> Controller -> script -> gets another scene and uses scene overlay?

I do not want to use logic brick actuators ever.

might i first ask why you dont want to use the logic bricks?

from bge import logic

logic.addScene('SceneName', overlay)

In the code above, overlay is a number, either 1 or 0. If it’s 1, it will add the scene as an overlay scene, and setting overlay to 0 will add it as a background scene.

Wow - thanks SolarLune! Really, thanks!