# Effect Handlers

These components control different visual or audio effects. You can add them to the list on the [Trap Mechanism](https://runemarkstudio.com/deadly-dungeon-traps/documentation/trap-mechanism/) components.

* **Delay:** how many seconds after the command executes after triggering.

Methods you can call with the commands in the mechanism or directly from code. Not all of these are available for every handler type.

```csharp
// Only plays the effect once.
void PlayOnce() 

// Start playing the effect indefinitely
void Play()      

// Paused the effect. When the play called, it resumes.
void Pause()     

// Stops the effect and resets it
void Stop()    
```

{% content-ref url="/pages/-MVL-ZrM5pqS2Nw2B487" %}
[Audio Handler](/traps/effect-handlers/audio-handler.md)
{% endcontent-ref %}

{% content-ref url="/pages/-MVL-cutAZ3LAdJ3O3oL" %}
[Particle (Effect Handler)](/traps/effect-handlers/particle-handler.md)
{% endcontent-ref %}

{% content-ref url="/pages/-MVL-ifQYPvg7yTVPrSN" %}
[Custom Effect Handler](/traps/effect-handlers/custom-effect-handler.md)
{% endcontent-ref %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://traps.runemarkstudio.com/traps/effect-handlers.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
