priority
priority
gets/sets the priority for this shape action.
Type: integer
Sample
Code
################ Get priority
# get the controller
controller = GameLogic.getCurrentController()
# get the shape action actuator attached to the
controller named Mouth
act = controller.actuators["Mouth"]
# get the priority
priority = act.priority
################ Set priority
# get the controller
controller = GameLogic.getCurrentController()
# get the shape action actuator attached to the
controller named Mouth
act = controller.actuators["Mouth"]
# get the priority
act.priority = 1
|