BGE API cleanup: apply patch from Moguri: Near, Radar, Touch sensor updated.
[blender.git] / source / gameengine / PyDoc / KX_Scene.py
index 24b81bbf55e36a289e9cb8a6eb841b46865aa843..5e357e6eefca554e4ab0851bfd5846092f617278 100644 (file)
@@ -70,3 +70,16 @@ class KX_Scene:
                @rtype: string
                """
 
+       def addObject(object, other, time=0)
+               """
+               Adds an object to the scene like the Add Object Actuator would, and returns the created object.
+               
+               @param object: The object to add
+               @type object: L{KX_GameObject} or string
+               @param other: The object's center to use when adding the object
+               @type other: L{KX_GameObject} or string
+               @param time: The lifetime of the added object, in frames. A time of 0 means the object will last forever.
+               @type time: int
+               
+               @rtype: L{KX_GameObject}
+               """