# Trap Triggers

![](https://4289778471-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MVKw8MgRKSYbFzCqlnm%2F-MW4rkN5WrLNRM-9-4pg%2F-MW4utPVxt0oZTeRFX7r%2Ftrigger-illustration.PNG?alt=media\&token=6b0c8c9d-36b7-4c05-aef4-dc8e9ec2b301)

Use this component to create player interaction with the trap. You can create trigger zones that activate the trap when the player enters, such as a pressure plate. You can use this component in a more advanced way, like using a disarm box when the player presses the E key.

This component depends on a Collider, with the *isTrigger* parameter enabled.

![](https://4289778471-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MVKw8MgRKSYbFzCqlnm%2F-MVvZYgHtDHOHnuPzvyi%2F-MVvgTfuHgA3WoZeOyd2%2Ftrigger.PNG?alt=media\&token=caf3627d-670a-430f-8b08-dcd0129329cf)

* **Trap:** drag and drop the trap that this trigger manipulates.
* **Action:** you can activate, deactivate the target trap, or toggle between these two states.
* **Cooldown:** how many seconds before the trigger would work again.
* **Tag:** only trigger when a game object with one of these tags enter. In most cases, this will be the Player.
* **Interaction:** You can allow the player to execute an action by pressing a button while staying in the trigger area instead of just walking into it. You can use [Key Codes](https://docs.unity3d.com/ScriptReference/KeyCode.html) or [Unity Input](https://docs.unity3d.com/Manual/class-InputManager.html).
* **Events:** You can use these events to make visual effects for the trigger or show/hide a UI element.

{% hint style="info" %}
You can use this component without a trap, but currently, only the **Activate** and the **Deactivate** actions are supported.
{% endhint %}
