|
MethodsgetExecutePrioritygetExecutePriority()Gets the execute priority of the logic brickReturn Type: integer Note:Doesn't workSample Code# get the controllercontroller = GameLogic.getCurrentController()# get the actuator attached to the controller named actact = controller.getActuator("act")# get brick prioritypriority = act.getExecutePriority()getOwnergetOwner()Gets the game object that owns the logic brick.Return Type: KX_GameObject Sample Code# get the controllercontroller = GameLogic.getCurrentController()# get the actuator attached to the controller named actact = controller.getActuator("act")# get brick ownerowner = act.getOwner()setExecutePrioritysetExecutePriority(priority)Sets the execution priority of the logic brick.priority:
Type: integer
0 is first
1 is second etc. Sample Code# get the controllercontroller = GameLogic.getCurrentController()# get the actuator attached to the controller named actact = controller.getActuator("act")# set brick priority to be firstact.setExecutePriority(0) |
| Blender
3D Game Engine |