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

# npc.behindcamerafovyroll

```lua
npc.behindcamerafovyroll(frames, mode, fov, roll)
```

|                         |                                  |
| ----------------------- | -------------------------------- |
| id                      | `0x023A`                         |
| arguments               | 4: Float, Int, Float, Float      |
| in NPC Kit              | yes                              |
| measured from a kit NPC | returns                          |
| vanilla scripts         | 222 calls in 127 of 1114 scripts |

## What it does

Ramps the follow camera's field-of-view and roll offsets to targets over a number of frames (or sets them at once). The fov offset is in radians and narrows the drawn view **only while the follow camera is frozen** with [setnoupdatebehindcamera](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/setnoupdatebehindcamera.md)`(1)`: `-0.5` takes it from 60 to about 31 degrees. Every vanilla call runs with the camera frozen.

## Arguments

### `frames` (Float)

How long the ramp takes; `0` at once.

### `mode` (Int)

The ramp's mode: `0`, `1`, `2`.

### `fov` (Float)

The field-of-view offset, in radians, taken off the view. Vanilla: `-0.265`, `-0.15`, `0.7`, `-0.18`.

### `roll` (Float)

The roll offset. Vanilla: `0`, `0.2`.

## Timing

Returns at once; the ramp runs over the frames.

## In NPC Kit

**Set it back to `(0, 0, 0, 0)`**: while it is in effect it also narrows the fov of a `cameras` shot.

## Used with

* [camerastart\_7e](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/camerastart_7e.md).

## Example

The follow camera frozen, narrowed and tilted for a tense line, then set back to `(0, 0, 0, 0)` and given back to the player before the talk ends.

```lua
local uneasy = [[
Something is wrong here, I can feel it in me.
The air is heavy, and the birds have gone quiet.
]]

talk = function()
    talkOpen();
    npc.setnoupdatebehindcamera(1);
    npc.behindcamerafovyroll(30, 1, -0.15, 0.2);
    npc.lua(function(handle) say(handle, uneasy) end);
    npc.behindcamerafovyroll(30, 1, 0, 0);
    npc.setnoupdatebehindcamera(0);
    talkClose();
end,
```

## Pitfalls

* Left on, it also narrows every `cameras` shot of a later talk.
* With the follow camera not frozen the fov offset does not show.
