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

# npc.resetbehindcamera

```lua
npc.resetbehindcamera(heading, level)
```

|                         |                                   |
| ----------------------- | --------------------------------- |
| id                      | `0x0288`                          |
| arguments               | 2: Float, Float                   |
| in NPC Kit              | yes                               |
| measured from a kit NPC | returns                           |
| vanilla scripts         | 1645 calls in 498 of 1114 scripts |

## What it does

Resets the follow camera (the one behind the player) to a heading and a height level.

## Arguments

### `heading` (Float)

Radians; wrapped into -π to π. Vanilla uses the map entry's heading, sometimes plus π.

### `level` (Float)

The camera's height level, clamped to -1 to 1. Vanilla: `-0.4`, `0`, `0.3`.

## Timing

Returns at once.

## In NPC Kit

After a scene, to leave the player's camera facing a chosen way: `npc.resetbehindcamera(1.5708, 0.0)`. Not tested on a kit NPC.

## Used with

* [cameraclear](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/cameraclear.md).

## Example

A scene's `close` that leaves the player's camera behind them, facing the NPC, before the fade in.

```lua
close = function()
    npc.fadeout(15);
    npc.fadesync();
    npc.cameraclear();
    npc.resetbehindcamera(2.677, 0.0);   -- the heading from the leader's mark to the NPC
    npc.wait(3);
    npc.fadein(15);
    npc.fadesync();
end,
```

## Pitfalls

* Not tested on a kit NPC.
