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

# npc.rlookatat

```lua
npc.rlookatat(actor, frames)
```

|                         |                                 |
| ----------------------- | ------------------------------- |
| id                      | `0x025A`                        |
| arguments               | 2: Int, Int                     |
| in NPC Kit              | yes                             |
| measured from a kit NPC | returns                         |
| vanilla scripts         | 340 calls in 52 of 1114 scripts |

## What it does

Turns the NPC's head toward an actor over a set time, without waiting, and keeps it following that actor until [lookatoff](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/lookatoff.md) or another look call. [rlookata](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/rlookata.md) with a duration.

## Arguments

### `actor` (Int)

`-1` the character the player controls; in the kit another NPC with `npc.actor("id")` (in a talk).

### `frames` (Int)

How long the head takes, a whole number (a fraction is dropped). The look has a shortest time of its own, and `0` or anything under it takes that. Vanilla: `0` most, then `30`.

## Timing

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

## In NPC Kit

A slow, deliberate look in a scene: `npc.rlookatat(npc.actor("npckit_0022"), 30)`.

## 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), [lookatat](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/lookatat.md).

## Example

```lua
eyeTheGuest = function()
    npc.rlookatat(npc.actor("npckit_0022"), 30);   -- a slow, deliberate look
    npc.wait(15);
    npc.stdmotionplay_2c2(0x01000011, 20);          -- talk, angry, while the head still turns
    npc.lookatsync();
end,
```
