> 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_62.md).

# npc.turn\_62

```lua
npc.turn_62(radians)
```

|                         |                                                                         |
| ----------------------- | ----------------------------------------------------------------------- |
| id                      | `0x0062`                                                                |
| arguments               | 1: 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         | 3626 calls in 395 of 1114 scripts                                       |

## What it does

Turns the NPC's body to face a map heading, a step at a time, and holds the script until it faces it. No turn motion plays and the head is left alone; [aturn\_261](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/aturn_261.md) is the turn with a motion.

## Arguments

### `radians` (Float)

The heading, in radians, the same angles as [dir](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/dir.md); it is wrapped into one turn. Vanilla passes the map-jump heading (`mp_map_set_angle`) in 3,521 of 3,626 calls: a party member turning to where it entered. In the kit, write the heading.

## Timing

Waits until the body faces the heading. The facing moves toward it by π/20 a step, the short way round, so a half turn takes about 20 steps.

## In NPC Kit

In the editor's Turn group, with the NPC's own heading as the default.

## Used with

* [dir](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/dir.md): the same heading at once, no turn.
* [aturn\_261](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/aturn_261.md): the turn with a turn motion.
* [turncancel](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/turncancel.md): stops it where it is.

## Example

The NPC turns back to its post after the talk.

```lua
local moveAlong = [[
Move along, now. There's nothing for you here,
and the guards don't like the people who loiter.
]]

local facing = 1.676
talk = function()
    talkOpen();
    npc.lua(function(handle) say(handle, moveAlong) end);
    talkClose();
    npc.turn_62(facing);   -- waits until it faces its post again
end,
```

## Pitfalls

* The body slides round without a step: for a walking NPC, [aturn\_261](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/aturn_261.md) looks right.
