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