> 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 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://docs.miltechsimulations.com/miltech-mission-hub/detailed-documentation/map-objects/counter-trigger.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.
