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

# npc.ucmove

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

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

## What it does

Walks the character the player controls (the party leader) to a point at the walking speed. It does not wait: [ucmovesync](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/ucmovesync.md) waits for the arrival. With no leader it does nothing.

## Arguments

### `x` (Float)

### `y` (Float)

### `z` (Float)

The point; `y` is the height.

## Timing

Returns at once; the walk runs on its own.

## In NPC Kit

It moves the player's character, not the NPC ([move](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/move.md) moves the NPC). Vanilla often aims at a point computed from the leader (`getx_12b(-1) + sin(h) * 10`); in the kit write the point as numbers. Do it in a scene, with the player's control already taken.

## Used with

* [ucmovesync](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/ucmovesync.md).
* [move](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/move.md): the NPC's own walk.

## Example

A scene that walks the player's character up to the NPC before the first shot.

```lua
open = function()
    npc.fadeout(15);
    npc.fadesync();
    npc.ucmove(39.5, -9.0, 64.5);
    npc.ucmovesync();
    npc.fadein(15);
    npc.fadesync();
end,
```
