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

# npc.rlookatrt

```lua
npc.rlookatrt(rotation, timeFrames)
```

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

## What it does

Turns the NPC's head to an angle from where its body faces, over a set number of frames, and the script goes on at once. [lookatrt](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/lookatrt.md) without the wait.

## Arguments

### `rotation` (Float)

The head's yaw from the body, in radians; `0` straight ahead. Vanilla: `0` most, then `±0.5`, `±0.2`.

### `timeFrames` (Float)

How long the turn takes, in frames. Vanilla: `30` most, then `0` (the head's normal speed).

## Timing

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

## Used with

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

## Example

The head drifts aside while the line opens.

```lua
local thatWay = [[
I wouldn't go that way if I were you, my friend.
The last one who did never came back to the city.
]]

talk = function()
    talkOpen();
    npc.rlookatrt(-0.5, 30);   -- starts turning, no wait
    npc.lua(function(handle) say(handle, thatWay) end);
    talkClose();
end,
```
