Class SCA_ILogicBrick (2.48)


Methods
getExecutePriority setExecutePriority
getOwner ----------
 
Variables
---------- ----------
 
Constants
---------- ----------

Inherited Methods:  Class PyObjectPlus
isA ----------

Inherited Methods:  Class Value
getName ----------



Methods



getExecutePriority

getExecutePriority()

Gets the execute priority of the logic brick

Return Type:  integer

Note:
Doesn't work

Sample Code

# get the controller
controller = GameLogic.getCurrentController()

# get the actuator attached to the controller named act
act = controller.getActuator("act")

# get brick priority
priority = act.getExecutePriority()

getOwner

getOwner()

Gets the game object that owns the logic brick.

Return Type:  KX_GameObject

Sample Code

# get the controller
controller = GameLogic.getCurrentController()

# get the actuator attached to the controller named act
act = controller.getActuator("act")

# get brick owner
owner = act.getOwner()

setExecutePriority

setExecutePriority(priority)

Sets the execution priority of the logic brick.

priority:
   Type:  integer
0 is first
1 is second
etc.

Sample Code

# get the controller
controller = GameLogic.getCurrentController()

# get the actuator attached to the controller named act
act = controller.getActuator("act")

# set brick priority to be first
act.setExecutePriority(0)



Blender 3D
Game Engine