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}
18 @ivar scene: the name of the scene to change to/overlay/underlay/remove/suspend/resume
20 @ivar camera: the camera to change to.
21 When setting the attribute, you can use either a L{KX_Camera} or the name of the camera.
22 @type camera: L{KX_Camera} on read, string or L{KX_Camera} on write
24 def setUseRestart(flag):
27 Set flag to True to restart the scene.
33 DEPRECATED: use the scene property instead
34 Sets the name of the scene to change to/overlay/underlay/remove/suspend/resume.
38 def setCamera(camera):
40 DEPRECATED: use the camera property instead
41 Sets the camera to change to.
43 Camera can be either a L{KX_Camera} or the name of the camera.
45 @type camera: L{KX_Camera} or string
50 Returns True if the scene will be restarted.
56 DEPRECATED: use the scene property instead
57 Returns the name of the scene to change to/overlay/underlay/remove/suspend/resume.
59 Returns an empty string ("") if no scene has been set.
65 DEPRECATED: use the camera property instead
66 Returns the name of the camera to change to.