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

# npc.resumebehindcamera

```lua
npc.resumebehindcamera(time, unused, easingType)
```

|                         |                                |
| ----------------------- | ------------------------------ |
| id                      | `0x01E4`                       |
| arguments               | 3: Float, Int, Int             |
| in NPC Kit              | yes                            |
| measured from a kit NPC | returns                        |
| vanilla scripts         | 43 calls in 30 of 1114 scripts |

## What it does

Ends a scripted camera shot and gives the camera back to the player: the view swings back to the follow camera over a number of frames, or cuts to it at once.

## Arguments

### `time` (Float)

How long the swing back takes, in frames; `0` cuts at once (38 of 43 vanilla calls). Vanilla also passes `2`, `15`, `20`, `30`.

### `unused` (Int)

Kept by the game and read by nothing. Pass `0`.

### `easingType` (Int)

The curve of the swing: `0` slow at both ends, `1` slow start, `2` slow end, any other value even. Vanilla: `2` with `0` frames, `0` with the timed swings.

## Timing

Returns at once; the swing runs over the next frames.

## In NPC Kit

A press in the editor's Follow camera group, fixed to vanilla's `(0, 0, 2)`. The kit ends an NPC camera shot with [cameraclear](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/cameraclear.md); a timed swing after it is not tested on a kit NPC.

## Used with

* [camerastart\_7e](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/camerastart_7e.md), [camerasync\_7f](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/camerasync_7f.md), [cameraclear](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/cameraclear.md): the shot before it.
* [resetbehindcamera](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/resetbehindcamera.md): the follow camera's heading before the swing.

## Example

After the shot, a smooth swing back instead of a cut.

```lua
endShot = function()
    npc.camerasync_7f(0);
    npc.resumebehindcamera(15, 0, 0);   -- 15 frames, slow at both ends
end,
```
