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

# npc.setnoupdatebehindcamera

```lua
npc.setnoupdatebehindcamera(state)
```

|                         |                                   |
| ----------------------- | --------------------------------- |
| id                      | `0x0236`                          |
| arguments               | 1: Int                            |
| in NPC Kit              | yes                               |
| measured from a kit NPC | returns                           |
| vanilla scripts         | 2250 calls in 559 of 1114 scripts |

## What it does

Freezes the follow camera (the one behind the player) where it is, or lets it follow again. While frozen, the camera neither moves nor turns when the player walks.

## Arguments

### `state` (Int)

`1` freezes the camera after one last update; `0` lets it follow every frame again. Vanilla: `0` 1,915 times, `1` 335.

## Timing

Returns at once; the freeze takes hold on the next frame.

## In NPC Kit

A toggle in the editor's Follow camera group. The camera is the player's, not the NPC's: a scene that freezes it must release it.

## Used with

* [behindcamerafovyroll](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/behindcamerafovyroll.md): its zoom and roll show only while the camera is frozen; vanilla freezes first, then zooms.
* [resetbehindcamera](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/resetbehindcamera.md): has no effect while frozen, so release first.
* [resumebehindcamera](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/resumebehindcamera.md): gives the camera back after a scene.

## Example

A quick zoom on the NPC's shout, then the camera back to normal.

```lua
shout = function()
    npc.setnoupdatebehindcamera(1);
    npc.behindcamerafovyroll(16, 0, 0.7, 0.2);   -- zoom in, a slight roll
    npc.wait(40);
    npc.behindcamerafovyroll(16, 0, 0, 0);
    npc.wait(16);
    npc.setnoupdatebehindcamera(0);
end,
```

## Pitfalls

* Left at `1`, the player walks out of a camera that never follows: always pair it with `0`.
