# 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: 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:

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

The question should be specific, self-contained, and written in natural language.
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.
