IsObjectBreakable: Difference between revisions
Jump to navigation
Jump to search
(Created page with "__NOTOC__ {{Server client function}} This function checks if an object is breakable. ==Syntax== <syntaxhighlight lang="lua">object isObejectBreakable( object theObject )</syntaxhighlight> ===Required...") |
m (→Syntax) |
||
Line 4: | Line 4: | ||
==Syntax== | ==Syntax== | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua">bool isObejectBreakable( object theObject )</syntaxhighlight> | ||
===Required Arguments=== | ===Required Arguments=== |
Revision as of 17:46, 20 April 2012
This function checks if an object is breakable.
Syntax
bool isObejectBreakable( object theObject )
Required Arguments
- object The Object that's being checked.
Returns
Returns true if the object is breakable, else false if the object is not breakable.
Example
Click to collapse [-]
ClientThis example creates an object when the resource starts and checks if the object is breakable. (TESTED!)
addEventHandler("onClientResourceStart",resourceRoot,function() local object = createObject ( 1337, 5540.6654, 1020.55122, 1240.545 ) if isObjectBreakable(object) then outputChatBox("Yes, the object is breakable.") else outputChatBox("No, the object is not breakable") end end)
See Also