# AreaTrigger.bindCanErase

Bind a callback that checks if the area trigger can be erased.

**Kind:** Function

**Environments:** Game

## Game

``` { .lua .api-signature }
areaTrigger:bindCanErase( callback, object? )
```

[Open the full Game reference](../Game-Script-Environment/Userdata/AreaTrigger.md#bindcanerase)

**Availability:** Client only

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `areaTrigger` | [AreaTrigger](../Game-Script-Environment/Userdata/AreaTrigger.md) | The area trigger instance. |
| `callback` | string | The name of the Lua function to bind. |
| `object` *(optional)* | table | The object that will receive the callback. (optional) |
