| Home | Trees | Index | Help |
|
|---|
| Module KX_SCA_AddObjectActuator :: Class KX_SCA_AddObjectActuator |
|
SCA_ILogicBrick--+ |SCA_IActuator--+ | KX_SCA_AddObjectActuator
Warning:
An Add Object actuator will be ignored if at game start, the linked object doesn't exist (or is empty) or the linked object is in an active layer.
This will genereate a warning in the console:
ERROR: GameObject OBName has a AddObjectActuator
ActuatorName without object (in 'nonactive' layer)
| Method Summary | |
|---|---|
KX_GameObject
|
Returns the last object created by this actuator. |
| list [vx, vy, vz] |
Returns the initial linear velocity of added objects. |
| string |
Returns the name of the game object to be added. |
| integer |
Returns the lifetime of the added object, in frames. |
Sets the initial linear velocity of added objects. | |
Sets the game object to add. | |
Sets the lifetime of added objects, in frames. | |
| Inherited from SCA_ILogicBrick | |
| integer |
Gets the execution priority of this logic brick. |
KX_GameObject
|
Gets the game object associated with this logic brick. |
Sets the priority of this logic brick. | |
| Method Details |
|---|
getLastCreatedObject()Returns the last object created by this actuator.
|
getLinearVelocity()Returns the initial linear velocity of added objects.
|
getObject()Returns the name of the game object to be added.
|
getTime()Returns the lifetime of the added object, in frames.
|
setLinearVelocity(vx, vy, vz)Sets the initial linear velocity of added objects.
|
setObject(obj)Sets the game object to add. A copy of the object will be added to the scene. If the object does not exist, this function is ignored. obj can either be aKX_GameObject or the name of an
object.
|
setTime(time)Sets the lifetime of added objects, in frames.
|
| Home | Trees | Index | Help |
|
|---|
| Generated by Epydoc 2.1 on Fri Aug 27 21:08:03 2004 | http://epydoc.sf.net |