# Introduction

**DESIGN CONCEPT**

![](/files/-MW4l2XGwcyPJhRgJhu-)

This tool's main goal is to create a versatile and modular system for building various traps and environmental hazards. By separating the trap control unit from the mechanisms, each part of a trap's movement and effects can be controlled and re-used. Each mechanism can have its own set of audio and particle effects and damage components.

For example, if you have a saw trap that rotates and slides up and down in its slot, it consists of two movements. Each movement can be controlled separately, without the need to edit a pre-made animation. If you want the slot to be longer, you only need to edit the modular slot parts and tweak the sliding mechanism a little.&#x20;

![](/files/-MW-gWokUnDZTHjMvacj)

**Trigger:** This component interacts with the player, and controls the trap by activate, deactivate or toggle.

**Trap:** representation of the trap which contains the mechanisms. One trap can control multiple mechanisms.

**Mechanism:** These components define how the trap parts work. You can combine multiple mechanisms  for complex trap movements - for example, a rotating blade that also slides up and down in a slot.

**Effect Handlers:** Use the effect handlers to subscribe to certain mechanism events and play, pause and stop particles or audio clips.&#x20;

**ADDING TRAP COMPONENTS TO A GAME OBJECT**

You can access these tools from the component menu by either navigating to the desired component, or typing in the search bar and choose from the results.

<div align="center"><img src="/files/-MVKwo2DrMrn2bcH-MeW" alt=""></div>

#### QUICK ACCESS TO THE DOCUMENTATION

In the Inspector, clicking on the help icon ![](https://runemarkstudio.com/wp-content/uploads/2019/08/help.jpg) will open the corresponding page.


---

# 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/introduction.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.
