> 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/end-mission.md).

# End Mission

If you fire one of the end mission actions, a message is displayed on the HUD, and all mission execution is stopped. The objects placed in the world remain.

### 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>End Mission Message</strong></td><td>You can define a custom message. Otherwise the message will be:<br><strong>Successful:</strong> <em>Congratulations! You have successfully completed the mission.</em><br><strong>Failed:</strong> <em>Mission failed. Better luck next time.</em></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>Mission Successful</strong></td><td>Will show the end mission message in green on the HUD. Stops the mission execution.</td></tr><tr><td><strong>Mission Failed</strong></td><td>Will show the end mission message in red on the HUD. Stops the mission execution.</td></tr></tbody></table>

### Events

**End Mission** doesn't have any events.

## See also

[Objective](/miltech-mission-hub/detailed-documentation/map-objects/objective.md)


---

# 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/end-mission.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.
