> For the complete documentation index, see [llms.txt](https://puzzlesystem.gitbook.io/project/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://puzzlesystem.gitbook.io/project/manual/standard-logics/simultdelayed.md).

# SimultDelayedPuzzleLogic

## Use Case

There are 3 buttons located in different parts of the scene. The player must keep them activated at the same time in order to activate the secret message. The buttons, however, after being pressed, are resetted back to initial state in 5 seconds. Thus, the player must act quickly, running from one button to another, in order to solve the problem.

## Customisation

There are a few useful properties that will help you to make the system fit your needs.

* ***float*****&#x20;delay** -- how long will the triggers stay active before they are untriggered back?
*
* ***bool*****&#x20;delayedSolvedReset** -- should the triggers be resetted when the puzzle solved only after the delay is expired? Sometimes, even if the puzzle is finally solved, you don't want to reset the triggers immediately, but give them a chance for a natural reset after the given delay is expired.
*
* ***bool*****&#x20;delayedFailedReset** -- the same concept as for the previous property, but now only in case of the failure event.

## Critical Events

### OnSolved

Happens when all triggers are being active at the same time.

### OnFailed

Happens when the delay has passed for any of the activated triggers.&#x20;


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://puzzlesystem.gitbook.io/project/manual/standard-logics/simultdelayed.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
