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

# npc.setcharclipone

```lua
npc.setcharclipone(state)
```

|                         |                                  |
| ----------------------- | -------------------------------- |
| id                      | `0x026F`                         |
| arguments               | 1: Int                           |
| in NPC Kit              | yes                              |
| measured from a kit NPC | returns                          |
| vanilla scripts         | 857 calls in 121 of 1114 scripts |

## What it does

The NPC's own clip switch: `1` on, `0` off. It sets two flags in the NPC's render record; what they change on screen is not proven (by its name, the clipping of a far character).

## Arguments

### `state` (Int)

`1` on, `0` off. Vanilla: `0` 554 times, `1` 303.

## Timing

Returns at once.

## In NPC Kit

Not tested on a kit NPC.

## Used with

* [setcharclipall](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/setcharclipall.md): every character at once.

## Example

```lua
init = function()
    -- ...
    npc.setcharclipone(0);   -- clip switch off for this NPC
end,
```

## Pitfalls

* Not tested on a kit NPC.
