1
# $Id: KX_SceneActuator.py 15444 2008-07-05 17:05:05Z lukep $
2
# Documentation for KX_SceneActuator
3
from SCA_IActuator import *
5
class KX_SceneActuator(SCA_IActuator):
7
Scene Actuator logic brick.
9
@warning: Scene actuators that use a scene name will be ignored if at game start, the
10
named scene doesn't exist or is empty
12
This will generate a warning in the console:
14
C{ERROR: GameObject I{OBName} has a SceneActuator I{ActuatorName} (SetScene) without scene}
16
def setUseRestart(flag):
18
Set flag to True to restart the scene.
24
Sets the name of the scene to change to/overlay/underlay/remove/suspend/resume.
28
def setCamera(camera):
30
Sets the camera to change to.
32
Camera can be either a L{KX_Camera} or the name of the camera.
34
@type camera: L{KX_Camera} or string
38
Returns True if the scene will be restarted.
44
Returns the name of the scene to change to/overlay/underlay/remove/suspend/resume.
46
Returns an empty string ("") if no scene has been set.
52
Returns the name of the camera to change to.