Module SCA_ILogicBrick :: Class SCA_ILogicBrick

Class SCA_ILogicBrick

source code

Known Subclasses:
SCA_IActuator.SCA_IActuator, SCA_ISensor.SCA_ISensor, SCA_IController.SCA_IController

Base class for all logic bricks.

Instance Methods
integer
getExecutePriority()
Gets the execution priority of this logic brick.
source code
KX_GameObject
getOwner()
Gets the game object associated with this logic brick.
source code
 
setExecutePriority(priority)
Sets the priority of this logic brick.
source code
Method Details

getExecutePriority()

source code 
Gets the execution priority of this logic brick.
Returns: integer
this logic bricks current priority.

setExecutePriority(priority)

source code 

Sets the priority of this logic brick.

This determines the order controllers are evaluated, and actuators are activated. Bricks with lower priority will be executed first.
Parameters:
  • priority (integer) - the priority of this logic brick.