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

# npc.lookatrt\_4c9

```lua
npc.lookatrt_4c9(rotationX, rotationY, timeFrames)
```

|                         |                                                                         |
| ----------------------- | ----------------------------------------------------------------------- |
| id                      | `0x04C9`                                                                |
| arguments               | 3: Float, Float, Float                                                  |
| in NPC Kit              | yes                                                                     |
| measured from a kit NPC | returns                                                                 |
| waits                   | it has a wait handler: it can hold the script, and in `talk` the player |
| vanilla scripts         | 56 calls in 19 of 1114 scripts                                          |

## What it does

Turns the NPC's head to a yaw and a pitch from where its body faces, over a set number of frames, and holds the script until the head is there. [rlookatrt\_4c7](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/rlookatrt_4c7.md) with the wait.

## Arguments

### `rotationX` (Float)

The yaw from the body, in radians; `0` straight ahead, the sign picks the side.

### `rotationY` (Float)

The pitch, in radians; `0` level. Vanilla passes `-1` to `0.5`; which sign tilts up is not settled.

### `timeFrames` (Float)

How long the turn takes, in frames. Vanilla: `30` most, also `0`, `25`, `45`.

## Timing

Waits until the head has turned.

## In NPC Kit

In the editor's Head group, live on the selected NPC.

## Used with

* [rlookatrt\_4c7](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/rlookatrt_4c7.md): no wait.
* [lookatrt](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/lookatrt.md): yaw only.
* [lookatoff](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/lookatoff.md): the head back to straight.

## Example

A shopkeeper glances at the counter, then levels the head again.

```lua
check = function()
    npc.lookatrt_4c9(0.0, 0.3, 30);   -- tilt; waits
    npc.wait(30);
    npc.lookatrt_4c9(0.0, 0.0, 30);   -- level
    npc.lookatoff();
end,
```

## Pitfalls

* Try a small pitch first: the sign that tilts up is not confirmed, and `1` radian is a strong tilt.
