# Raycast Triggers

![](https://4289778471-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MVKw8MgRKSYbFzCqlnm%2F-MW9P0V_gl1Gcgj_1iBd%2F-MW9SIioiRbFOet4ekI-%2Flaser-trigger.PNG?alt=media\&token=5e55bab2-d6f4-4181-9ac7-2bb47dbb4811)

Use this trigger type for detector rays. Note that this is a trigger behavior only, for visualizing the laser beam you need a Ray Handler too.&#x20;

* **Trap:** the trap this detector ray controls.&#x20;
* **Action:** Activate, Deactivate or Toggle. (For Toggle you always need to specify a trap)
* **Cooldown:** time (seconds) until the trigger can react to events again.
* **Max Distance:** how far the ray (laser) should extend.&#x20;
* **Layer Mask:** use these to include or exclude objects from raycasting.
* **Tag Filter:** the trigger reacts when the raycast hits a game object with these tags.
* **Events:** you can set Unity Functions on specific events, for example, play audio, particle effect, or animation.&#x20;
