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

# npc.setcharfogstatus

```lua
npc.setcharfogstatus(status)
```

|                         |                                 |
| ----------------------- | ------------------------------- |
| id                      | `0x0346`                        |
| arguments               | 1: Int                          |
| in NPC Kit              | yes                             |
| measured from a kit NPC | returns                         |
| vanilla scripts         | 183 calls in 25 of 1114 scripts |

## What it does

Draws the actor's model with the area's fog (`1`) or without it (`0`). With fog the model fades into the fog's colour with distance, like the map around it; without it the model keeps its own colours at any distance.

## Arguments

### `status` (Int)

`1` with fog, `0` without. Vanilla: `1` 95 times, `0` 88, the `0` mostly right after binding a model that is shown up close or in a cutscene.

## Timing

Returns at once; the model changes the next time it is drawn.

## In NPC Kit

Not tested on a kit NPC. On a map with fog, an NPC that should stand out at a distance, or one that only appears in a close shot, turns it off once its model is bound.

## Used with

* [bindp2\_d4](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/bindp2_d4.md): bind the model first.

## Example

```lua
npc.bindp2_d4(0x03000006, 1, 0);
npc.setcharfogstatus(0);
```
