# Effect.bindEventCallback

Bind a lua callback to be triggered by the effect.

**Kind:** Function

**Environments:** Game

## Game

``` { .lua .api-signature }
effect:bindEventCallback( methodName, params?, reference? )
```

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

**Availability:** Client only

> **Deprecated:**
> use [Effect.bindEventClientCallback](../Game-Script-Environment/Userdata/Effect.md#bindeventclientcallback) instead.
>

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `effect` | [Effect](../Game-Script-Environment/Userdata/Effect.md) | The effect. |
| `methodName` | string | The name of the callback method being bound. Example: MyClass.methodName( self, event, params ) |
| `params` *(optional)* | any | Parameter object passed to the callback. (Optional) |
| `reference` *(optional)* | table | Table to receive the callback. (Optional) |
