breakObject
Client-side
Server-side
Shared
This page is incomplete! Help wanted!
Please finish this page using the corresponding Old Wiki article.
Go to Contribution guidelines for more information.
This function breaks a specific object.
Note
Only breakable objects can be broken.
Syntax
breakObject ( )Code Examples
server
This example checks if the object created is breakable and if it is then breaks it.
addCommandHandler("createObj",function(command, id) local x, y, z = getElementPosition(localPlayer) local object = createObject (id, x, y, z) if (id) then if isObjectBreakable(object) then breakObject(object) end endend)