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