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

# npc.move

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

|                         |                                                   |
| ----------------------- | ------------------------------------------------- |
| id                      | `0x005D`                                          |
| arguments               | 3: Float, Float, Float                            |
| in NPC Kit              | yes                                               |
| measured from a kit NPC | waits: holds the script until its condition holds |
| vanilla scripts         | 2116 calls in 199 of 1114 scripts                 |

## What it does

Walks the NPC to a point at its walk speed and holds the script until it arrives.

## Arguments

### `x` (Float)

### `y` (Float)

### `z` (Float)

The point, in map coordinates. On the floor (`usemapid(1)`) the NPC walks along the walkmesh.

## Timing

Waits until the NPC arrives. **There is no limit**: if the way is blocked, it waits for good.

## In NPC Kit

* A walker's `main`: `aturn` to the point, `move`, `wait`.
* In a talk or scene, a blocked `move` holds the player: keep the path clear, or use [rmove](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/rmove.md) with a `wait` and [movecancel](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/movecancel.md).
* On another NPC: `npc.on("id").move(x, y, z)`.

## Used with

* [aturn](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/aturn.md) before it, [wait](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/wait.md) after it.
* [setwalkspeed](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/setwalkspeed.md): how fast.
* [rmove](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/rmove.md): the same without waiting.

## Example

```lua
main = function()
    npc.aturn(33.0, -9.0, 68.6);
    npc.move(33.0, -9.0, 68.6);
    npc.wait(90);
end,
```
