track
track
gets/sets CD track to be played
Type: int
Sample
Code
################## Get track
# get the controller
controller = GameLogic.getCurrentController()
# get the cd actuator attached to the controller named
act
act = controller.actuators["act"]
# get track
trackPlaying = act.track
################## Set track
# get the controller
controller = GameLogic.getCurrentController()
# get the cd actuator attached to the controller named
act
act = controller.actuators["act"]
# set track
act.track = 2
|