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

# npc.lookatat

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

|                         |                                                                         |
| ----------------------- | ----------------------------------------------------------------------- |
| id                      | `0x0252`                                                                |
| arguments               | 2: Int, Int                                                             |
| 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         | 190 calls in 48 of 1114 scripts                                         |

## What it does

Turns the NPC's head toward an actor over a set time and holds the script until the head is there. [lookata](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/lookata.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; `0` its normal speed. Vanilla: `0`, `25`, `30`.

## Timing

Waits until the head turn ends.

## Used with

* [rlookatat](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/rlookatat.md): no wait. [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 slow look at the player, over 30 frames, before the NPC speaks.

```lua
local stranger = [[
...You're not from around here, are you, friend?
I can always tell by the way that people walk.
]]

talk = function()
    npc.lookatat(-1, 30);
    talkOpen();
    npc.lua(function(handle) say(handle, stranger) end);
    talkClose();
end,
```
