mode
mode
gets/sets the mode of the actuator
Type: integer
1 = Set Parent
2 = Remove Parent
Sample
Code
################## Get mode
# get the controller
controller = GameLogic.getCurrentController()
# get the actuator attached to the controller named act
act = controller.actuators["act"]
# get mode
parent = act.mode
################## Set mode
# get the controller
controller = GameLogic.getCurrentController()
# get the actuator attached to the controller named act
act = controller.actuators["act"]
# set mode to set parent
act.mode = 1
|