IsObjectBreakable: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
No edit summary |
||
Line 5: | Line 5: | ||
==Syntax== | ==Syntax== | ||
<syntaxhighlight lang="lua">bool isObjectBreakable ( object theObject )</syntaxhighlight> | <syntaxhighlight lang="lua">bool isObjectBreakable ( object theObject )</syntaxhighlight> | ||
{{OOP||[[object]]:isBreakable|breakable}} | {{OOP||[[object]]:isBreakable|breakable|setObjectBreakable}} | ||
===Required Arguments=== | ===Required Arguments=== | ||
*'''object''' the [[object]] that's being checked. | *'''object''' the [[object]] that's being checked. |
Revision as of 23:01, 4 October 2014
This function checks if an object is breakable.
Syntax
bool isObjectBreakable ( object theObject )
OOP Syntax Help! I don't understand this!
- Method: object:isBreakable(...)
- Variable: .breakable
- Counterpart: setObjectBreakable
Required Arguments
- object the object that's being checked.
Returns
- true if the object is breakable.
- false if the object is not breakable.
Example
This example creates an object when the resource starts and checks if the object is breakable.
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
- createObject
- getObjectScale
- moveObject
- setObjectScale
- stopObject
- getObjectMass
- getObjectProperty
- setObjectMass
- setObjectProperty