BreakObject
Jump to navigation
Jump to search
Script Example Missing Function BreakObject needs a script example, help out by writing one. | |
Before submitting check out Editing Guidelines Script Examples. |
This function breaks a specific object. Note: Only breakable objects can be broken.
Note: This function does not support any kind of glass objects |
Syntax
bool breakObject ( object theObject )
Required Arguments
- theObject: An object element
Returns
Returns true if the object was successfully broken. false if the object is not breakable, or a wrong object was given.
See Also
- breakObject
- createObject
- getObjectMass
- getObjectScale
- getObjectProperty
- isObjectBreakable
- isObjectMoving
- moveObject
- respawnObject
- setObjectBreakable
- setObjectMass
- setObjectScale
- setObjectProperty
- stopObject
- toggleObjectRespawn