forked from bartvdbraak/blender
7d4dc4f0f5
- changed epy_docgen.sh so inherited attributes & methods are included inline for each type, removed source option since its not useful and makes the download bigger.
28 lines
805 B
Python
28 lines
805 B
Python
# $Id$
|
|
# Documentation for KX_ParentActuator
|
|
from SCA_IActuator import *
|
|
|
|
class KX_ParentActuator(SCA_IActuator):
|
|
"""
|
|
The parent actuator can set or remove an objects parent object.
|
|
@ivar object: the object this actuator sets the parent too.
|
|
@type object: KX_GameObject or None
|
|
"""
|
|
def setObject(object):
|
|
"""
|
|
DEPRECATED: Use the object property.
|
|
Sets the object to set as parent.
|
|
|
|
Object can be either a L{KX_GameObject} or the name of the object.
|
|
|
|
@type object: L{KX_GameObject}, string or None
|
|
"""
|
|
def getObject(name_only = 1):
|
|
"""
|
|
DEPRECATED: Use the object property.
|
|
Returns the name of the object to change to.
|
|
@type name_only: bool
|
|
@param name_only: optional argument, when 0 return a KX_GameObject
|
|
@rtype: string, KX_GameObject or None if no object is set
|
|
"""
|