| Home | Trees | Indices | Help |
|
|---|
|
|
PyObjectPlus --+
|
CValue --+
|
SCA_ILogicBrick --+
|
SCA_IActuator --+
|
KX_SCA_AddObjectActuator
Edit Object Actuator (in Add Object Mode)
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)
| Instance Methods | |||
| None |
|
||
| bool |
|
||
| Deprecated | |||
|---|---|---|---|
|
|||
| string, KX_GameObject or None if no object is set |
|
||
|
|||
| integer |
|
||
|
|||
| list [vx, vy, vz] |
|
||
|
|||
| list [vx, vy, vz] |
|
||
| KX_GameObject |
|
||
| integer |
|
||
| string |
|
||
| KX_GameObject |
|
||
|
|||
| Instance Variables | |
| list [vx, vy, vz] |
angularVelocity the initial angular velocity of added objects. |
| int |
executePriority This determines the order controllers are evaluated, and actuators are activated (lower priority is executed first). (Inherited from GameTypes.SCA_ILogicBrick) |
| bool |
invalid Test if the object has been freed by the game engine and is no longer valid. (Inherited from GameTypes.PyObjectPlus) |
| list [vx, vy, vz] |
linearVelocity the initial linear velocity of added objects. |
| string |
name The name of this CValue derived object (read-only). (Inherited from GameTypes.SCA_ILogicBrick) |
| KX_GameObject or None |
object the object this actuator adds. |
| KX_GameObject or None |
objectLastCreated the last added object from this actuator (read-only). |
| KX_GameObject or None in exceptional cases. |
owner The game object this logic brick is attached to (read-only). (Inherited from GameTypes.SCA_ILogicBrick) |
| integer |
time the lifetime of added objects, in frames. |
| Method Details |
Sets the game object to add. A copy of the object will be added to the scene when the actuator is activated. If the object does not exist, this function is ignored. object can either be a KX_GameObject or the name of an object or None.
Deprecated: use the object property |
Returns the name of the game object to be added. Returns None if no game object has been assigned to be added.
Deprecated: use the object property |
Sets the lifetime of added objects, in frames. If time == 0, the object will last forever.
Deprecated: use the time property |
Returns the lifetime of the added object, in frames.
Deprecated: use the time property |
Sets the initial linear velocity of added objects.
Deprecated: use the linearVelocity property |
Returns the initial linear velocity of added objects.
Deprecated: use the linearVelocity property |
Sets the initial angular velocity of added objects.
Deprecated: use the angularVelocity property |
Returns the initial angular velocity of added objects.
Deprecated: use the angularVelocity property |
Returns the last object created by this actuator.
Deprecated: use the objectLastCreated property |
Returns the last object created by this actuator. The object can then be accessed from objectLastCreated.
|
| Instance Variable Details |
timethe lifetime of added objects, in frames. Set to 0 to disable automatic deletion.
|
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0 on Mon Aug 31 23:12:31 2009 | http://epydoc.sourceforge.net |