> For the complete documentation index, see [llms.txt](https://fehdead.gitbook.io/npc-kit/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/setmaphighmodeldepth.md).

# npc.setmaphighmodeldepth

```lua
npc.setmaphighmodeldepth(depth)
```

|                         |                                   |
| ----------------------- | --------------------------------- |
| id                      | `0x03ED`                          |
| arguments               | 1: Float                          |
| in NPC Kit              | yes                               |
| measured from a kit NPC | returns                           |
| vanilla scripts         | 8936 calls in 937 of 1114 scripts |

## What it does

Sets the map's high-model draw depth. Vanilla resets it to `-1` at the end of every talk.

## Arguments

### `depth` (Float)

`-1` in all but 38 of 8,936 vanilla calls; the others pass `500` or `100`. What a positive value changes on screen is not confirmed here.

## Timing

Returns at once.

## In NPC Kit

`setmaphighmodeldepth(-1)` is in `talkClose`. Keep the `-1`.

## Used with

* [setmapmodelstatus](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/setmapmodelstatus.md)`(1)` right after, in `talkClose`.

## Example

```lua
local function talkClose()
    -- ... mouth, nods, lookatoff, ucon, sethpmenu(1), clear_force_char_nearfade ...
    npc.setmaphighmodeldepth(-1);
    npc.setmapmodelstatus(1);
    -- ...
end
```

## Pitfalls

* A positive value's effect is not confirmed: keep `-1`.
