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

# npc.setcharseplayall

```lua
npc.setcharseplayall(state)
```

|                         |                                   |
| ----------------------- | --------------------------------- |
| id                      | `0x0273`                          |
| arguments               | 1: Int                            |
| in NPC Kit              | yes                               |
| measured from a kit NPC | returns                           |
| vanilla scripts         | 3710 calls in 520 of 1114 scripts |

## What it does

Turns the sounds every actor takes from its own sound bank off (`0`) or on (`1`): a global switch, not just this NPC. An actor is heard only while this and its own [setcharseplay](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/setcharseplay.md) are both on.

## Arguments

### `state` (Int)

`1` on, `0` off. Vanilla: `0` 1,955 times, `1` 1,755.

## Timing

Returns at once.

## In NPC Kit

It changes the whole game's character sounds: turn it back on before the scene ends.

## Used with

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

## Example

Every character's animation sounds off for a quiet scene, back on in `close`.

```lua
open = function()
    npc.setcharseplayall(0);
    -- ...
end,

close = function()
    -- ...
    npc.setcharseplayall(1);
end,
```

## Pitfalls

* A global switch: left at `0`, every character in the game stays silent.
