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