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

# npc.motionreadsync

```lua
npc.motionreadsync(slot)
```

|                         |                                                                         |
| ----------------------- | ----------------------------------------------------------------------- |
| id                      | `0x00A3`                                                                |
| arguments               | 1: Int                                                                  |
| in NPC Kit              | yes                                                                     |
| measured from a kit NPC | returns                                                                 |
| waits                   | it has a wait handler: it can hold the script, and in `talk` the player |
| vanilla scripts         | 1514 calls in 479 of 1114 scripts                                       |

## What it does

Holds the script while map-motion slot `n`, asked for with [motionread](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/motionread.md), is still loading.

## Arguments

### `slot` (Int)

The slot, as given to `motionread`.

## Timing

Waits while the load is pending or in flight; any other state ends it at once.

## In NPC Kit

Returns at once for a kit NPC, whose map motions never load (see [motionread](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/motionread.md)).

## Used with

* [motionread](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/motionread.md).

## Example

```lua
init = function()
    npc.bindp2_d4(0x006E0019, 4, 3);
    npc.stdmotionread(16);
    npc.stdmotionreadsync();        -- the kit's wait for its motions, instead of motionreadsync
    npc.stdmotionplay_2c2(0x01000000, 0);
end,
```
