useRestart
useRestart
gets/sets if the scene will be restarted.
Type: Bool
1 = True = want scene to be restarted
0 = False = don't want scene to be restarted
Note:
Doesn't work
Sample
Code
################## Get useRestart
# get controller
controller = GameLogic.getCurrentController()
# get actuator attached to the controller named
restartScene
act = controller.actuators["restartScene"]
# will scene be restarted?
restart = act.useRestart
################## Set useRestart
# get controller
controller = GameLogic.getCurrentController()
# get actuator attached to the controller named
restartScene
act = controller.actuators["restartScene"]
# set scene to be restarted
act.useRestart = True
|