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

# npc.move\_5e

```lua
npc.move_5e(x, y, z, speed)
```

|                         |                                                   |
| ----------------------- | ------------------------------------------------- |
| id                      | `0x005E`                                          |
| 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         | 370 calls in 94 of 1114 scripts                   |

## What it does

Walks (or runs) the NPC to a point at a speed you give, and holds the script until it arrives. [move](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/move.md) with its own speed.

## Arguments

### `x` (Float)

### `y` (Float)

### `z` (Float)

The point.

### `speed` (Float)

The speed. Vanilla: `0.06` most.

## Timing

Waits until arrival. No limit.

## Used with

* [move](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/move.md), [rmove\_43](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/rmove_43.md).

## Example

A messenger that runs to the player's spot at its own speed, then walks back.

```lua
rush = function()
    npc.aturn(31.0, -9.0, 66.0);
    npc.move_5e(31.0, -9.0, 66.0, 0.12);   -- faster than vanilla's usual 0.06
    npc.stdmotionplay_2c2(0x01000002, 20);
end,
```

## Pitfalls

* It waits until arrival: a point it can't reach holds the script for good (in a talk, the player too).
