> For the complete documentation index, see [llms.txt](https://docs.miltechsimulations.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.miltechsimulations.com/miltech-mission-hub/detailed-documentation/map-objects/counter-trigger.md).

# Counter Trigger

A trigger based on a counter.

### Attributes

<table data-header-hidden data-full-width="false"><thead><tr><th width="109.99993896484375">Attribute</th><th>Description</th></tr></thead><tbody><tr><td><strong>Active On Start</strong></td><td><strong>Enabled:</strong> the trigger will start counting as soon as the missions starts<br><strong>Disabled:</strong> you need to activate this trigger during the mission</td></tr><tr><td><strong>Trigger Count</strong></td><td>Value of the count at which the trigger is fired</td></tr></tbody></table>

### Actions

<table data-header-hidden><thead><tr><th width="110">Action</th><th>Description</th></tr></thead><tbody><tr><td><strong>Activate</strong></td><td>The timer starts</td></tr><tr><td><strong>Deactivate</strong></td><td>The timer stops and resets</td></tr><tr><td><strong>Reset Count</strong></td><td>Reset the current count to 0</td></tr><tr><td><strong>Increase Count</strong></td><td>Increase the current count by 1. Only works when the trigger is active.</td></tr><tr><td><strong>Decrease Count</strong></td><td>Decrease the current count by 1. Only works when the trigger is active.</td></tr></tbody></table>

### Events

The events are only fired when the trigger is active

<table data-header-hidden><thead><tr><th width="109.99993896484375">Event</th><th>Description</th></tr></thead><tbody><tr><td><strong>Count reached</strong></td><td>Fires when the current count has reached or exceeded the <em>Trigger Count</em></td></tr></tbody></table>


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.miltechsimulations.com/miltech-mission-hub/detailed-documentation/map-objects/counter-trigger.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
