BreakObject: Difference between revisions

From Multi Theft Auto: Wiki
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 break.
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:''' A [[object]] element
*'''theObject:''' An [[object]] element


===Returns===
===Returns===
Returns 'true' if the object breaks.
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

Returns

Returns true if the object was successfully broken. false if the object is not breakable, or a wrong object was given.

See Also