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

# npc.setheight

```lua
npc.setheight(height)
```

|                         |                                   |
| ----------------------- | --------------------------------- |
| id                      | `0x00A7`                          |
| arguments               | 1: Float                          |
| in NPC Kit              | yes                               |
| measured from a kit NPC | returns                           |
| vanilla scripts         | 1001 calls in 151 of 1114 scripts |

## What it does

Sets the height the game keeps for the NPC's body and talk shape (not the model's size: the NPC looks the same). What it changes in play, beyond those values, is not tested on a kit NPC.

## Arguments

### `height` (Float)

The height. Vanilla: `0.8` in 1,000 of 1,001 calls, `0.3` once. A negative value raises a flag of its own; what that flag does is not settled.

## Timing

Returns at once.

## In NPC Kit

In the editor's Body group, opening on the NPC's current height. Leave it at `0.8` unless a test shows a reason.

## Used with

* [setradius](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/setradius.md), [setwh](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/setwh.md): the rest of the NPC's collision and talk shape.
* [setscale](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/setscale.md): resizes the model; `setheight` does not.

## Example

```lua
init = function()
    npc.setheight(0.8);   -- vanilla's value
end,
```

## Pitfalls

* It is not a size: to make the NPC taller use [setscale](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/setscale.md).
