Shape.destroyShape
Destroy a shape
Kind: Function
Environments: Game
Game
shape:destroyShape(
attackLevel,
destructionType,
destructionPosition,
destructionNormal
)
Availability: Server only
Parameters:
| Name | Type | Description |
|---|---|---|
shape |
Shape | The shape. |
attackLevel |
integer | Determines which quality level of shape the attack can destroy. Setting it to 0 (default) will destroy any shape. |
destructionType (optional) |
integer | The type of destruction (Optional). (See sm.shape.destructionType). (Defaults to sm.shape.destructionType.none) |
destructionPosition (optional) |
Vec3 | The position of the destruction would hit the shape (Optional) |
destructionNormal (optional) |
Vec3 | The normal direction of where the destruction would hit the shape (Optional) |