looping
looping
gets/sets
the current loop mode of the actuator
Type: bool
1 = True
Play
continuously
0 = False
Play once
Sample
Code
################## Get looping
# get the controller
controller = GameLogic.getCurrentController()
# get the actuator attached to the controller named slam
act = controller.actuators["slam"]
# get current mode
loopMode = act.looping
################## Set looping
# get the controller
controller = GameLogic.getCurrentController()
# get the actuator attached to the controller named slam
act = controller.actuators["slam"]
# set current mode
act.looping = True
|