# Multiple Events in one Object

{% hint style="info" %}
Make sure you have read the[ Implementation Guide](https://easy-event-manager.gitbook.io/documentation/implementation/getting-started) before proceeding with any examples for optimal results!
{% endhint %}

1. For our example we want to bind the two events called **`OpenGate`** and **`CloseGate`**

<figure><img src="https://3743917652-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F461QZtnJljYazCvCp6z0%2Fuploads%2Fgf5NXB2C2Ealdofk5enR%2Fimage.png?alt=media&#x26;token=7a5f4768-8ceb-49eb-b572-3044032bd69b" alt=""><figcaption></figcaption></figure>

2. Implement the [**`OnEventCalled()`**](https://easy-event-manager.gitbook.io/documentation/functions/on-event-called)and we added a `Switch on Name` based on our EventIDs to decide which logic should be run

<figure><img src="https://3743917652-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F461QZtnJljYazCvCp6z0%2Fuploads%2FpZsqtnhVKAUmKtrrbmso%2Fimage.png?alt=media&#x26;token=25cec67d-fe76-4072-b595-e8a674529ad3" alt=""><figcaption></figcaption></figure>

3. Thats it! Now we can usae [**`CallEvent()`**](https://easy-event-manager.gitbook.io/documentation/functions/call-event)anywhere we want!

<figure><img src="https://3743917652-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F461QZtnJljYazCvCp6z0%2Fuploads%2F53vLTRsy4T1c0jnCvhke%2FGateExample.png?alt=media&#x26;token=29a8d0fd-a774-4438-b818-7ad1cc219913" alt=""><figcaption><p>Run it from anywhere you want</p></figcaption></figure>
