priority
priority
Note:
0 (zero) is the highest
priority. 1 is the next highest priority. etc.
Actuators
with a high priority will override actuators with a lower priority.
gets/sets the
priority for this action
Type: integer
Sample
Code
################ Get priority
# get the controller
controller = GameLogic.getCurrentController()
# get the
actuator attached to controller named Walk
act = controller.actuators["Walk"]
# get the priority
priority = act.priority
################ Set priority
# get the controller
controller = GameLogic.getCurrentController()
# get the
actuator attached to controller named Walk
act = controller.actuators["Walk"]
# set priority
act.priority = 1
|