Module KX_ParentActuator :: Class KX_ParentActuator

Class KX_ParentActuator

SCA_ILogicBrick.SCA_ILogicBrick --+    
                                  |    
        SCA_IActuator.SCA_IActuator --+
                                      |
                                     KX_ParentActuator

The parent actuator can set or remove an objects parent object.

Instance Methods
 
setObject(object)
DEPRECATED: Use the object property.
string, KX_GameObject or None if no object is set
getObject(name_only=1)
DEPRECATED: Use the object property.
integer
getExecutePriority()
Gets the execution priority of this logic brick. (Inherited from SCA_ILogicBrick.SCA_ILogicBrick)
KX_GameObject
getOwner()
Gets the game object associated with this logic brick. (Inherited from SCA_ILogicBrick.SCA_ILogicBrick)
 
setExecutePriority(priority)
Sets the priority of this logic brick. (Inherited from SCA_ILogicBrick.SCA_ILogicBrick)
Instance Variables
int executePriority
This determines the order controllers are evaluated, and actuators are activated (lower priority is executed first). (Inherited from SCA_ILogicBrick.SCA_ILogicBrick)
KX_GameObject or None object
the object this actuator sets the parent too.
KX_GameObject or None in exceptional cases. owner
The game object this logic brick is attached to (read only). (Inherited from SCA_ILogicBrick.SCA_ILogicBrick)
Method Details

setObject(object)

 

DEPRECATED: Use the object property. Sets the object to set as parent.

Object can be either a KX_GameObject or the name of the object.

Parameters:

getObject(name_only=1)

 

DEPRECATED: Use the object property. Returns the name of the object to change to.

Parameters:
  • name_only (bool) - optional argument, when 0 return a KX_GameObject
Returns: string, KX_GameObject or None if no object is set