# ShapeClass.server_onExplosion

Called when the [Shape](../Game-Script-Environment/Userdata/Shape.md) is hit by an explosion.

**Kind:** Callback

**Environments:** Game

## Game

**Callback side:** Server

``` { .lua .api-signature }
ShapeClass:server_onExplosion( center, destructionLevel, damage )
```

[Open the full Game reference](../Game-Script-Environment/Classes/ShapeClass.md#server_onexplosion)

For more information about explosions, see [sm.physics.explode](../Game-Script-Environment/Static-Functions/sm.physics.md#explode).

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `self` | table | The class instance. |
| `center` | [Vec3](../Game-Script-Environment/Userdata/Vec3.md) | The center of the explosion. |
| `destructionLevel` | integer | The level of destruction done by this explosion. Corresponds to the 'durability' rating of a [Shape](../Game-Script-Environment/Userdata/Shape.md). |
| `damage` | integer | The damage value of the explosion. |
