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

# npc.setbodyshake

```lua
npc.setbodyshake(amount)
```

|                         |                                 |
| ----------------------- | ------------------------------- |
| id                      | `0x0495`                        |
| arguments               | 1: Float                        |
| in NPC Kit              | yes                             |
| measured from a kit NPC | returns                         |
| vanilla scripts         | 222 calls in 49 of 1114 scripts |

## What it does

Shakes the NPC's whole body by an amount (trembling, shivering), or stops it with `0`.

## Arguments

### `amount` (Float)

How much. Vanilla: `0.01` (108 calls), `0` (77), `0.005`.

## Timing

Returns at once; the shake runs until `setbodyshake(0)`.

## In NPC Kit

A frightened or cold NPC: `npc.setbodyshake(0.01)`. Turn it off in the scene's `close`.

## Used with

* [setkubifuristatus](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/setkubifuristatus.md): the head only.

## Example

An NPC trembling while it speaks, still again when the talk ends.

```lua
local wolves = [[
Th-the wolves... they're back, I saw them myself.
Dozens of them, right outside the eastern gate.
]]

talk = function()
    talkOpen();
    npc.setbodyshake(0.01);
    npc.lua(function(handle) say(handle, wolves) end);
    npc.setbodyshake(0);
    talkClose();
end,
```

## Pitfalls

* It runs until `setbodyshake(0)`: record that after the `npc.lua`, where it runs whichever way the talk's Lua finishes.
