BGE: fixed nomenclature of KX_Scene::addObject and KX_Scene::AddReplicaObject
KX_Scene::addObject: Changed the parameter "other" to "reference", as "other" doesn't mean anything. KX_Scene::AddReplicaObject: Changed the parameter "parentobject" to "referenceobject", as the parameter did NOT contain a parent object in any way. Now both functions use the same kind of name for the same thing. Thanks to panzergame / Porteries Tristan.
This commit is contained in:
@@ -131,14 +131,14 @@ base class --- :class:`PyObjectPlus`
|
||||
|
||||
:type: Vector((gx, gy, gz))
|
||||
|
||||
.. method:: addObject(object, other, time=0)
|
||||
.. method:: addObject(object, reference, time=0)
|
||||
|
||||
Adds an object to the scene like the Add Object Actuator would.
|
||||
|
||||
:arg object: The object to add
|
||||
:arg object: The (name of the) object to add.
|
||||
:type object: :class:`KX_GameObject` or string
|
||||
:arg other: The object's center to use when adding the object
|
||||
:type other: :class:`KX_GameObject` or string
|
||||
:arg reference: The (name of the) object which position, orientation, and scale to copy.
|
||||
:type reference: :class:`KX_GameObject` or string
|
||||
:arg time: The lifetime of the added object, in frames. A time of 0 means the object will last forever.
|
||||
:type time: integer
|
||||
:return: The newly added object.
|
||||
|
||||
Reference in New Issue
Block a user