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

# npc.motionplay

```lua
npc.motionplay(motion)
```

|                         |                                   |
| ----------------------- | --------------------------------- |
| id                      | `0x00A5`                          |
| arguments               | 1: Int                            |
| in NPC Kit              | yes                               |
| measured from a kit NPC | returns                           |
| vanilla scripts         | 7554 calls in 290 of 1114 scripts |

## What it does

[motionplay\_bb](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/motionplay_bb.md)`(motion, 0)`: plays a map motion with no blend.

## Arguments

### `motion` (Int)

`0x10000000 + slot << 24 + n`, as in `motionplay_bb`. Vanilla's most common: `0x11000000`, `0x11000001`, `0x11000002`, `0x12000000`, `0x13000000`.

## Timing

Returns at once.

## In NPC Kit

**It plays nothing on a kit NPC**: a kit NPC has no map motions (see [motionplay\_bb](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/motionplay_bb.md)). Use [stdmotionplay\_2c2](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/stdmotionplay_2c2.md).

## Used with

* [motionstartframe](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/motionstartframe.md), [motionloop](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/motionloop.md), [motionloopframe](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/motionloopframe.md) before it in vanilla scene scripts.
* [motionsync\_282](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/motionsync_282.md) to wait for the end.

## Example

What vanilla's `motionplay(0x11000000)` becomes on a kit NPC: a standard motion of its package.

```lua
-- vanilla scene script:   motionplay(0x11000000); motionsync_282(1);
gesture = function()
    npc.stdmotionplay_2c2(0x01000013, 20);   -- laugh
    npc.motionsync_282(1);
    npc.stdmotionplay_2c2(0x01000000, 20);
end,
```

## Pitfalls

* On a kit NPC it plays nothing and gives no error.
