# Trap Mechanism

![This trap has two mechanisms: one for rotating the saw, the other for moving it along the slot.](/files/-MW54IrhTT5RZDmZwWX-)

These components define how the trap works: moving, rotating using physics or particles, and launching projectiles.

You can use multiple mechanisms in a single trap. Putting them together as parent-child will result in a more complex trap.&#x20;

![](/files/-MVKyumnmTJzVNau29dD)

* **Play Mode:** After activation, the mechanism executes itself once only, or as a loop until the deactivation happens.
* **Cooldown:** Seconds before the mechanism can reactivate.  0 means no cooldown.
* **Reset on Finish:** This only available in Only Once play mode.&#x20;
* **Effects:** A list of rules that controls effects. Assign an [**Effect Handler**](/traps/effect-handlers/custom-effect-handler.md) to call a selected command on it when an Event happens.
* **Command:** what should the effect handler do when the selected event happens.

{% content-ref url="/pages/-MVKyxvpXSAweFWXBLb5" %}
[Animator](/traps/trap-mechanism/trap-animator.md)
{% endcontent-ref %}

{% content-ref url="/pages/-MVKzToDoQzN63ojngVQ" %}
[Launcher](/traps/trap-mechanism/trap-launcher.md)
{% endcontent-ref %}

{% content-ref url="/pages/-MVKzt-8YYDl1dSFaJPN" %}
[Particle (Trap Mechanism)](/traps/trap-mechanism/particle.md)
{% endcontent-ref %}

{% content-ref url="/pages/-MVKzwglKVhlkqIKkBLW" %}
[Physics](/traps/trap-mechanism/physics.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/trap-mechanism.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.
