RespawnObject: Difference between revisions
Jump to navigation
Jump to search
(removed {{Needs Example}}, removed unnecessary section) |
mNo edit summary |
||
Line 7: | Line 7: | ||
===Required Arguments=== | ===Required Arguments=== | ||
*'''theObject:''' | *'''theObject:''' an [[object]] element | ||
===Returns=== | ===Returns=== |
Revision as of 22:20, 4 October 2014
This function respawns a specific object.
Syntax
bool respawnObject ( object theObject )
Required Arguments
- theObject: an object element
Returns
Returns true if the object was sucessfully respawned. false if the object is not breakable, or a wrong object was given.
Example
This example prevents objects from despawning. When an object breaks, it gets respawned right away.
addEventHandler ( "onClientObjectBreak", getRootElement(), function () respawnObject ( source ) end )
See Also
- createObject
- getObjectScale
- moveObject
- setObjectScale
- stopObject
- getObjectMass
- getObjectProperty
- setObjectMass
- setObjectProperty