# Introduction

**DESIGN CONCEPT**

![](https://4289778471-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MVKw8MgRKSYbFzCqlnm%2F-MW4gJgMgrILKkXZ-Y6-%2F-MW4l2XGwcyPJhRgJhu-%2FPromo%2002.PNG?alt=media\&token=7097e0f0-94ef-4283-94a4-9f0ab23e6225)

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;

![](https://4289778471-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MVKw8MgRKSYbFzCqlnm%2F-MW-OYLs8tDw5vE4AOiA%2F-MW-gWokUnDZTHjMvacj%2FTrap%20System%20Graph.jpg?alt=media\&token=f7acac6d-92c2-483f-b63a-c5d75bbd6345)

**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="https://4289778471-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MVKw8MgRKSYbFzCqlnm%2F-MVKwCJ8jaI8aHdVIvh8%2F-MVKwo2DrMrn2bcH-MeW%2Fcomponent%20menu.jpg?alt=media&#x26;token=5aaf9de9-fd1e-4f50-b482-a169e53d366e" 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.
