Actuator Logic Brick: executePriority

executePriority
  • get/sets the execute priority of the logic brick.

Type:
  • integer
Range:
  • 0 (highest) to 100 (lowest)
Note:
  • Logic bricks with the highest priority will be executed before logic bricks with lower priority.
     
  • Overriding actions (higher priority) must be lower in the stack.
Sample Code


################  get the execute priority
 
# import bge module

import bge

# get the controller
cont = bge.logic.getCurrentController()

# get the actuator attached to the controller
# my actuator is named actuator

act = cont.actuators["actuator"]

# get the execute priority
priority = act.executePriority
 
Sample Code


################  set the execute priority

# import bge module
import bge

# get the controller
cont = bge.logic.getCurrentController()

# get the actuator attached to the controller
# my actuator is named actuator

act = cont.actuators["actuator"]

# set the execute priority
act.executePriority = 1