# ⚡ The Signal System

# Inspiration

One of Quake’s best features was the trigger and entity’s target system. This seemlingly mundane thing allowed mappers to create modular and original logic. For example, you would enter a room after pressing a button on a wall. Then, all the lights slowly turned on one by one revealing a monster that would spawn when all the lights were turned on. 

These kind’s of sequences weren’t programmed each time a level needed some special logic. It was all made using their level editor using reusable entities a basic signal system. Here is an example of how the previous sequence could be structured using entities and signals:

### Room entry sequence


1. A `Trigger` entity brush would be placed around a button
2. A signal would be emitted from the `Trigger` To the button
3. The button get’s activated and moves into the wall, giving the player feedback that the button has been pressed
4. The signal is then relayed from the button to the door, which triggers it’s opening sequence
5. The signal is relayed from the `Door` to the first set of lights

   
   1. Which then gets relayed to all the lights one by one
6. The last lights relay the signal to a `MonsterSpawner` that instantiates the boss

   
   :::info
   These aren’t the exact entities used in Quake

   :::

## Expanding the concept

---

**Documents**

- [Project Status](https://docs.antopilo.dev/s/2b239c4c-0499-4059-8de9-b240f71887c0/doc/project-status-6fyDviuXlE)
- [Welcome](https://docs.antopilo.dev/s/2b239c4c-0499-4059-8de9-b240f71887c0/doc/welcome-yF3kGz8XH3)
- [Workflow](https://docs.antopilo.dev/s/2b239c4c-0499-4059-8de9-b240f71887c0/doc/workflow-S9ota9vgbD)
- [Scene](https://docs.antopilo.dev/s/2b239c4c-0499-4059-8de9-b240f71887c0/doc/scene-HdnkvdILFd)
- [Scripting](https://docs.antopilo.dev/s/2b239c4c-0499-4059-8de9-b240f71887c0/doc/scripting-LI3IE46tt2)
- [UI](https://docs.antopilo.dev/s/2b239c4c-0499-4059-8de9-b240f71887c0/doc/ui-ZW3OQfS29Z)
- [Debugging](https://docs.antopilo.dev/s/2b239c4c-0499-4059-8de9-b240f71887c0/doc/debugging-UmswlxDLyv)
- [Modules](https://docs.antopilo.dev/s/2b239c4c-0499-4059-8de9-b240f71887c0/doc/modules-h26DveHarI)