Trees | Indices | Help |
|
---|
|
PyObjectPlus --+ | CValue --+ | 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)
|
|||
None |
|
||
Deprecated | |||
---|---|---|---|
|
|||
string, KX_GameObject or None if no object is set |
|
||
|
|||
integer |
|
||
|
|||
list [vx, vy, vz] |
|
||
|
|||
list [vx, vy, vz] |
|
||
KX_GameObject |
|
||
Inherited from SCA_ILogicBrick | |||
integer |
|
||
KX_GameObject |
|
||
|
|||
Inherited from CValue | |||
string |
|
||
Inherited from PyObjectPlus | |||
bool |
|
|
|||
list [vx, vy, vz] |
angularVelocity the initial angular velocity of added objects. |
||
list [vx, vy, vz] |
linearVelocity the initial linear velocity of added objects. |
||
KX_GameObject or None |
object the object this actuator adds. |
||
KX_GameObject or None |
objectLastCreated the last added object from this actuator (read-only). |
||
integer |
time the lifetime of added objects, in frames. |
||
Inherited from SCA_ILogicBrick | |||
---|---|---|---|
int |
executePriority This determines the order controllers are evaluated, and actuators are activated (lower priority is executed first). |
||
string |
name The name of this CValue derived object (read-only). |
||
KX_GameObject or None in exceptional cases. |
owner The game object this logic brick is attached to (read-only). |
||
Inherited from PyObjectPlus | |||
bool |
invalid Test if the object has been freed by the game engine and is no longer valid. |
|
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 |
Deprecated: use the time property |
Deprecated: use the linearVelocity property |
Deprecated: use the linearVelocity property |
Deprecated: use the angularVelocity property |
Deprecated: use the angularVelocity property |
Deprecated: use the objectLastCreated property |
|
|
timethe lifetime of added objects, in frames. Set to 0 to disable automatic deletion.
|
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0beta1 on Wed Aug 26 12:07:41 2009 | http://epydoc.sourceforge.net |