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

# npc.turn

```lua
npc.turn(x, y, z)
```

|                         |                                                                         |
| ----------------------- | ----------------------------------------------------------------------- |
| id                      | `0x0061`                                                                |
| arguments               | 3: Float, Float, Float                                                  |
| 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         | 1799 calls in 392 of 1114 scripts                                       |

## What it does

Turns the NPC's body to face a ground point, holding the script until the turn ends. Unlike [aturn](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/aturn.md) it doesn't point the head.

## Arguments

### `x` (Float)

### `y` (Float)

Popped, but the turn doesn't use it.

### `z` (Float)

The point. Vanilla passes the map-jump point (`mp_map_set_x, _y, _z`) in 1,389 of 1,799 calls: the party leader turning to where it entered.

## Timing

Waits until the turn has ended.

## In NPC Kit

Works on a kit NPC; [aturn](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/aturn.md) is the one the examples use, since an NPC usually looks where it turns.

## Used with

* [aturn](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/aturn.md), [aturn\_261](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/aturn_261.md), [move](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/move.md).

## Example

A body turn with the head left alone: the NPC turns its back on the player for a cold answer.

```lua
coldShoulder = function()
    npc.turn(25.0, -9.0, 70.0);    -- y is not used
    npc.stdmotionplay_2c2(0x01000011, 20);   -- talk, angry
end,
```
