> For the complete documentation index, see [llms.txt](https://cowsinss-organization.gitbook.io/fps-engine-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cowsinss-organization.gitbook.io/fps-engine-documentation/content/03.-content/03.8-extra/trigger.md).

# Trigger

Trigger allows you to detect Trigger Collisions of an object with the Player, and perform behaviours in response.

{% hint style="info" %}
Attach this component on a GameObject and ensure to assign a Collider and enable `isTrigger.`
{% endhint %}

You can subscribe any behaviour you want to each of the provided events from the Inspector:&#x20;

* <mark style="color:purple;">events</mark>:
  * **onEnter**
  * **onStay**
  * **onExit**
