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

# npc.lookatsync

```lua
npc.lookatsync()
```

|                         |                                                                         |
| ----------------------- | ----------------------------------------------------------------------- |
| id                      | `0x024C`                                                                |
| arguments               | 0                                                                       |
| 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         | 205 calls in 81 of 1114 scripts                                         |

## What it does

Holds the script until the NPC's head turn (from `rlookata`, `rlookatat`, `rlookatrt_4c7`) has ended.

## Timing

Waits, once a frame, while the head is still turning.

## Used with

* [rlookatat](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/rlookatat.md), [rlookata](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/rlookata.md), [rlookatrt\_4c7](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/rlookatrt_4c7.md).

## Example

A head turn that starts at once, a gesture while it turns, and the line once the head is there.

```lua
notice = function()
    npc.rlookatat(-1, 30);                    -- the head starts turning
    npc.stdmotionplay_2c2(0x01000003, 20);    -- turn right
    npc.lookatsync();                         -- wait for the head
    npc.stdmotionplay_2c2(0x01000002, 20);
end,
```
