IsObjectBreakable: Difference between revisions
Jump to navigation
Jump to search
m (changed "obeject" to "object") |
No edit summary |
||
Line 24: | Line 24: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
</section> | </section> | ||
==Requirements== | |||
{{Requirements|n/a|1.3.0-9.03783|}} | |||
==See Also== | ==See Also== | ||
{{Object functions}} | {{Object functions}} |
Revision as of 06:14, 10 May 2012
This function checks if an object is breakable.
Syntax
bool isObjectBreakable ( 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)
Requirements
This template will be deleted.
See Also