> For the complete documentation index, see [llms.txt](https://ilumisoft.gitbook.io/health-system/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ilumisoft.gitbook.io/health-system/pro-features/event-listeners.md).

# Event Listeners

The [pro version](https://assetstore.unity.com/packages/slug/250857) comes with two useful event listener components you can use to setup actions and logic right in the inspector if the health of an object changes or becomes empty.

### On Health Changed

The OnHealthChanged event gets invoked when the health of an object changes. You can add it to a GameObject by clicking **Add Component->Health System->Events->Ob Health Changed**

<figure><img src="https://4034067424-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOnO5HYdY8hW7tIMCOtrZ%2Fuploads%2FZH9HxNqxpAah5nN3KQk1%2Fimage.png?alt=media&amp;token=4e76916d-c507-4ebc-a7c6-a5459e06ac0e" alt=""><figcaption></figcaption></figure>

### On Health Empty

The OnHealthChanged event gets invoked when the health of an object changes. You can add it to a GameObject by clicking **Add Component->Health System->Events->Ob Health Empty**

<figure><img src="https://4034067424-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOnO5HYdY8hW7tIMCOtrZ%2Fuploads%2F5rsGMFqvBzSbk0uAbVJQ%2Fimage.png?alt=media&amp;token=256d0dc2-db9b-402c-a833-38a9cea2a2ff" alt=""><figcaption></figcaption></figure>
