useContinue
useContinue
gets/sets the status of the Action Actuator Continue button.
Type:
Bool
1 = True:
Continue playing the
the Action from the frame it was playing when the
actuator was turned off (State System).
0 = False:
Restart the
Action. Play it from the beginning.
Sample
Code
################ Get continue
# get the controller
controller = GameLogic.getCurrentController()
# get the
actuator attached to controller named Walk
act = controller.actuators["Walk"]
#
Continue from last frame played or restart?
continue_action = act.useContinue
################ Set continue
# get the controller
controller = GameLogic.getCurrentController()
# get the
actuator attached to controller named Walk
act = controller.actuators["Walk"]
# Set it to Continue from last frame played
act.useContinue = True
|