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

# npc.setprojectionshadow

```lua
npc.setprojectionshadow(state)
```

|                         |                                   |
| ----------------------- | --------------------------------- |
| id                      | `0x03A9`                          |
| arguments               | 1: Int                            |
| in NPC Kit              | yes                               |
| measured from a kit NPC | returns                           |
| vanilla scripts         | 1458 calls in 120 of 1114 scripts |

## What it does

Turns the NPC's projected shadow on (`1`) or off (`0`): a second, cast shadow, apart from the ground shadow of [showshadow](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/showshadow.md).

## Arguments

### `state` (Int)

`1` on, `0` off. Vanilla: `1` 797 times, `0` 661.

## Timing

Returns at once.

## In NPC Kit

The kit examples don't use it.

## Used with

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

## Example

The projected shadow off for a talk and back on after.

```lua
local lookCloser = [[
Look closer, and tell me what you see in there.
Most people walk right by it without a glance.
]]

talk = function()
    talkOpen();
    npc.setprojectionshadow(0);
    npc.lua(function(handle) say(handle, lookCloser) end);
    npc.setprojectionshadow(1);
    talkClose();
end,
```

## Pitfalls

* Not tested on a kit NPC; the ground shadow is [showshadow](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/showshadow.md).
