Scene Actuator logic brick.
Warning:
Scene actuators that use a scene name will be ignored if at game
start, the named scene doesn't exist or is empty
This will generate a warning in the console:
ERROR: GameObject OBName has a SceneActuator
ActuatorName (SetScene) without scene
bool
|
|
|
|
|
setScene(scene)
Sets the name of the scene to change
to/overlay/underlay/remove/suspend/resume. |
|
|
|
setCamera(camera)
Sets the camera to change to. |
|
|
boolean
|
|
string
|
getScene()
Returns the name of the scene to change
to/overlay/underlay/remove/suspend/resume. |
|
|
string
|
getCamera()
Returns the name of the camera to change to. |
|
|
integer
|
|
string
|
|
KX_GameObject
|
|
|
|
KX_Camera
on read, string or KX_Camera on write
|
camera
the camera to change to.
|
int
|
executePriority
This determines the order controllers are evaluated, and actuators
are activated (lower priority is executed first).
(Inherited from GameTypes.SCA_ILogicBrick)
|
bool
|
invalid
Test if the object has been freed by the game engine and is no longer
valid.
(Inherited from GameTypes.PyObjectPlus)
|
int from 0 to 5 GameLogic.Scene Actuator
|
mode
The mode of the actuator
|
string
|
name
The name of this CValue derived object (read-only).
(Inherited from GameTypes.SCA_ILogicBrick)
|
KX_GameObject or None in exceptional cases.
|
owner
The game object this logic brick is attached to (read-only).
(Inherited from GameTypes.SCA_ILogicBrick)
|
string.
|
scene
the name of the scene to change
to/overlay/underlay/remove/suspend/resume
|
bool
|
useRestart
Set flag to True to restart the sene
|