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

# npc.movecancel

```lua
npc.movecancel()
```

|                         |                                   |
| ----------------------- | --------------------------------- |
| id                      | `0x0080`                          |
| arguments               | 0                                 |
| in NPC Kit              | yes                               |
| measured from a kit NPC | returns                           |
| vanilla scripts         | 1230 calls in 249 of 1114 scripts |

## What it does

Stops the NPC's walk where it stands.

## Timing

Returns at once.

## In NPC Kit

The end of a walk with a limit: `rmove`, a `wait` for as long as the walk may take, `movecancel()`. On another NPC: `npc.on("id").movecancel()`.

## Used with

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

## Example

A walk with a limit: the NPC starts toward the point, the script waits 120 frames at most, then the walk is stopped wherever it got to.

```lua
main = function()
    npc.aturn(33.0, -9.0, 68.6);
    npc.rmove(33.0, -9.0, 68.6);
    npc.wait(120);
    npc.movecancel();
    npc.wait(60);
end,
```

## Pitfalls

* After it the NPC stands where it was stopped, not at the point: the next walk starts from there.
