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

# npc.setcharclipall

```lua
npc.setcharclipall(state)
```

|                         |                                   |
| ----------------------- | --------------------------------- |
| id                      | `0x0156`                          |
| arguments               | 1: Int                            |
| in NPC Kit              | yes                               |
| measured from a kit NPC | returns                           |
| vanilla scripts         | 1193 calls in 287 of 1114 scripts |

## What it does

The global character-clip switch: `0` turns it off for every character, `1` turns it back on. What it changes on screen is not proven (by its name, the clipping of far characters).

## Arguments

### `state` (Int)

`0` off, `1` on. Vanilla: `0` 714 times, `1` 479.

## Timing

Returns at once.

## In NPC Kit

It changes the whole game's drawing: put it back after the scene.

## Used with

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

## Example

A wide shot where every character must stay drawn: culling off for the scene, on again in its `close`.

```lua
open = function()
    npc.fadeout(15);
    npc.fadesync();
    npc.setcharclipall(0);
    npc.camerastart_7e(0, npc.camera("npckit_0021 wide"));
    npc.wait(3);
    npc.fadein(15);
    npc.fadesync();
end,

close = function()
    npc.fadeout(15);
    npc.fadesync();
    npc.cameraclear();
    npc.setcharclipall(1);
    npc.wait(3);
    npc.fadein(15);
    npc.fadesync();
end,
```

## Pitfalls

* A global switch: left at `0`, it stays off for the whole game after the scene.
* `1` does not force it on: the game also holds it off on its own (a second bit of the same mask).
