> 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/developer-sdk/activities-setup/search-and-rescue.md).

# Search and Rescue

If you want to make your helicopter compatible with search and rescue, you need to create an animated hoist with a rescuee / victim model. The hoist should extend about 35 feet below the helicopter. To make it work, you need to monitor and set a number of local variables.

### Lvars to set

<table data-header-hidden data-full-width="false"><thead><tr><th width="326.79998779296875">LVar</th><th>Description</th></tr></thead><tbody><tr><td><strong>MMH_COMPATIBILITY_SAR</strong></td><td>Always set to 1</td></tr><tr><td><strong>MMH_HOIST_POSITION</strong></td><td>0 = At top, not extended<br>100 = At bottom, fully extended</td></tr><tr><td><strong>MMH_SAR_ACFT_RESCUEE</strong></td><td>Set to 1 when the rescuee / victim is shown in the cockpit (i.e. rescue completed). <br><br>You need to do this logic yourself, basically when hoist is at top and rescuee is picked, move the rescuee to the cockpit and set the lvar to signal mission success.</td></tr></tbody></table>

### Lvars to read

<table data-header-hidden data-full-width="false"><thead><tr><th width="326.79998779296875">LVar</th><th>Description</th></tr></thead><tbody><tr><td><strong>MMH_RESCUEE_PICKED</strong></td><td>1 = Show rescuee / victim attached to the hoist</td></tr><tr><td><strong>MMH_SAR_MISSION_ACTIVE</strong></td><td>1 = SAR mission is active</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/developer-sdk/activities-setup/search-and-rescue.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.
