RespawnObject: Difference between revisions
Jump to navigation
Jump to search
(Created page with "__NOTOC__ {{client function}} This function respawns a specific object. Note: Only breakable objects can respawn. ==Syntax== <syntaxhighlight lang="lua">bool respawnObject ( theObject )</cod...") |
m (Fixed some typos) |
||
Line 2: | Line 2: | ||
{{client function}} | {{client function}} | ||
This function respawns a specific object. | This function respawns a specific object. | ||
==Syntax== | ==Syntax== | ||
<syntaxhighlight lang="lua">bool respawnObject ( theObject )</syntaxhighlight> | <syntaxhighlight lang="lua">bool respawnObject ( object theObject )</syntaxhighlight> | ||
===Required Arguments=== | ===Required Arguments=== | ||
*'''theObject:''' | *'''theObject:''' An [[object]] element | ||
===Returns=== | ===Returns=== | ||
Returns 'true' if the object sucessfully respawned. | Returns ''true'' if the object was sucessfully respawned. ''false'' if the object is not breakable, or a wrong object was given. | ||
'false' if the object is not breakable, or a wrong object was given. | |||
==See Also== | ==See Also== | ||
{{Client_object_functions}} | {{Client_object_functions}} |
Revision as of 17:20, 13 January 2013
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.
See Also
- createObject
- getObjectScale
- moveObject
- setObjectScale
- stopObject
- getObjectMass
- getObjectProperty
- setObjectMass
- setObjectProperty