# HarvestableClass.server_onExplosion

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

**Kind:** Callback

**Environments:** Game

## Game

**Callback side:** Server

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

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

**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. |
