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

# npc.rmove

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

|                         |                                   |
| ----------------------- | --------------------------------- |
| id                      | `0x0042`                          |
| arguments               | 3: Float, Float, Float            |
| in NPC Kit              | yes                               |
| measured from a kit NPC | returns                           |
| vanilla scripts         | 5902 calls in 172 of 1114 scripts |

## What it does

Starts walking the NPC to a point at its walk speed and returns at once: the script goes on while the NPC walks.

## Arguments

### `x` (Float)

### `y` (Float)

### `z` (Float)

The point, in map coordinates.

## Timing

Returns at once. [movesync](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/movesync.md) or [waitdistance](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/waitdistance.md) wait for the walk.

## In NPC Kit

The walk with a limit: start it, `wait` as long as it may take, then [movecancel](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/movecancel.md) in case it didn't arrive. Of vanilla's walkers, 93 use `rmove`, 79 `move`.

## Used with

* [waitdistance](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/waitdistance.md): wait until it is near the point.
* [movecancel](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/movecancel.md): stop it.
* [move](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/move.md): the same, waiting.

## Example

```lua
npc.rmove(33.0, -9.0, 68.6);
npc.wait(120);
npc.movecancel();
```
