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

# npc.lookatt\_250

```lua
npc.lookatt_250(x, y, z, duration)
```

|                         |                                                   |
| ----------------------- | ------------------------------------------------- |
| id                      | `0x0250`                                          |
| arguments               | 4: Float, Float, Float, Float                     |
| in NPC Kit              | yes                                               |
| measured from a kit NPC | waits: holds the script until its condition holds |
| vanilla scripts         | 37 calls in 14 of 1114 scripts                    |

## What it does

Turns the NPC's head toward a point of the map over a set number of frames, and holds the script until the head is there. The head keeps looking at that point until [lookatoff](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/lookatoff.md). The body does not turn.

## Arguments

### `x` (Float)

The point's x, in map coordinates.

### `y` (Float)

The point's height.

### `z` (Float)

The point's z.

### `duration` (Float)

How long the turn takes, in frames.

## Timing

Waits until the head has turned.

## In NPC Kit

[rlookatt\_258](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/rlookatt_258.md) is the same turn without the wait.

## Used with

* [rlookatt\_258](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/rlookatt_258.md).
* [lookatoff](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/lookatoff.md): the head back to straight.

## Example

```lua
local oldGate = [[
There, look. The old gate, just past the wall.
Nobody has opened it since the war, you know.
]]

npc.lookatt_250(72.0, 4.0, 39.0, 30);
npc.lua(function(handle) say(handle, oldGate) end);
```
