breakObject
Shared
Breaks a breakable object at once.
bool breakObject(object object)
Parameters
| Name | Type | Description |
|---|---|---|
| object | object | The object. |
Returns
true if the object broke. false if it cannot be broken or, on a client, it is not loaded or its model does not break.
On the server, the break reaches every client.
Example
addCommandHandler("smash", function()
breakObject(window)
end)