1
# $Id: KX_ParentActuator.py 2615 2004-06-02 12:43:27Z kester $
2
# Documentation for KX_ParentActuator
3
from SCA_IActuator import *
5
class KX_ParentActuator(SCA_IActuator):
7
The parent actuator can set or remove an objects parent object.
11
Sets the object to set as parent.
13
Object can be either a L{KX_GameObject} or the name of the object.
15
@type object: L{KX_GameObject}, string or None
17
def getObject(name_only = 1):
19
Returns the name of the object to change to.
21
@param name_only: optional argument, when 0 return a KX_GameObject
22
@rtype: string, KX_GameObject or None if no object is set