M MY Multiplayer: Wiki
Side
Kind

breakObject

Shared

Breaks a breakable object at once.

bool breakObject(object object)

Parameters

NameTypeDescription
objectobjectThe 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)

See also