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

# npc.rlookatrt\_4c7

```lua
npc.rlookatrt_4c7(yaw, pitch, frames)
```

|                         |                                 |
| ----------------------- | ------------------------------- |
| id                      | `0x04C7`                        |
| arguments               | 3: Float, Float, Float          |
| in NPC Kit              | yes                             |
| measured from a kit NPC | returns                         |
| vanilla scripts         | 279 calls in 49 of 1114 scripts |

## What it does

Turns the NPC's head to an angle (yaw and pitch, in radians, from its body) over a number of frames, without waiting: looking up, down, aside, with no actor to look at.

## Arguments

### `yaw` (Float)

Left and right, radians.

### `pitch` (Float)

Up and down, radians. Vanilla passes small negative values such as `-0.26`; which sign is down is not confirmed here.

### `frames` (Float)

How long the turn takes; `0` its normal speed.

## Timing

Returns at once. [lookatsync](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/lookatsync.md) waits for it.

## In NPC Kit

A glance aside in a scene: `npc.rlookatrt_4c7(0.5, 0.0, 45)`. Undo with [lookatoff](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/lookatoff.md).

## Used with

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

## Example

A glance aside while the NPC thinks, then the head back to straight.

```lua
think = function()
    npc.rlookatrt_4c7(0.5, 0.0, 45);
    npc.lookatsync();
    npc.wait(40);
    npc.lookatoff();
end,
```

## Pitfalls

* Which sign of `pitch` looks down is not confirmed: try a small value first.
