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

# npc.stdmotionreadsync

```lua
npc.stdmotionreadsync()
```

|                         |                                                                         |
| ----------------------- | ----------------------------------------------------------------------- |
| id                      | `0x0119`                                                                |
| arguments               | 0                                                                       |
| 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         | 1989 calls in 282 of 1114 scripts                                       |

## What it does

Holds the script until the motion package [stdmotionread](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/stdmotionread.md) asked for has loaded. With [setautorelax](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/setautorelax.md) on, it then puts the NPC in its stand (`ready`).

## Timing

Waits, once a frame, while the package is loading. It also ends at once in a few cases where the package can't be claimed, so its end doesn't prove the package loaded: a package the model doesn't ship ends the wait and leaves a T-pose.

## In NPC Kit

Measured on a kit NPC: returns once the package is in. Always right after `stdmotionread`.

## Used with

* [stdmotionread](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/stdmotionread.md) just before.
* [stdmotionplay\_2c2](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/stdmotionplay_2c2.md) just after, to start the idle (or another motion) of the package.
* [setautorelax](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/setautorelax.md)`(1)` earlier in `init`: makes this call stand the NPC up when the package is in.

## Example

```lua
npc.stdmotionread(16);
npc.stdmotionreadsync();
npc.stdmotionplay_2c2(0x01000000, 0);
```
