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

# npc.rlookata

```lua
npc.rlookata(actor)
```

|                         |                                   |
| ----------------------- | --------------------------------- |
| id                      | `0x0259`                          |
| arguments               | 1: Int                            |
| in NPC Kit              | yes                               |
| measured from a kit NPC | returns                           |
| vanilla scripts         | 1029 calls in 165 of 1114 scripts |

## What it does

Turns the NPC's head toward an actor without waiting, at the NPC's own head speed. The head keeps following that actor (the target is read again from the actor's model on every update) until [lookatoff](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/lookatoff.md) or another look call.

## Arguments

### `actor` (Int)

`-1` the character the player controls (689 of 1,029 vanilla calls), `0` or more an actor of the script; in the kit another NPC is `npc.actor("id")` (in a talk).

## Timing

Returns at once.

## In NPC Kit

In a scene, a listener's head following a walker:

```lua
npc.rlookata(npc.actor("npckit_0022"));
```

16% of vanilla talks start with `rlookata(-1)` before the body turn.

## Used with

* [lookatoff](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/lookatoff.md) to stop.
* [aturn](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/aturn.md) / [raturna](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/raturna.md): the body follows.
* [lookata](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/lookata.md): the same, waiting.

## Example

The listener's head follows the guest while the guest walks to its mark; the head is let go when the beat ends.

```lua
guestWalks = function()
    local guest = npc.on("npckit_0022")
    npc.rlookata(npc.actor("npckit_0022"));   -- no wait: the walk starts at once
    guest.aturn(319.94, 2.02, 42.10);
    guest.move(319.94, 2.02, 42.10);
    npc.lookatoff();
end,
```

## Pitfalls

* An index with no actor does nothing, without an error.
* An actor with no model is looked at where it stands at the call: the head does not follow it.
