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

# npc.setradius\_221

```lua
npc.setradius_221(width, depth)
```

|                         |                                   |
| ----------------------- | --------------------------------- |
| id                      | `0x0221`                          |
| arguments               | 2: Float, Float                   |
| in NPC Kit              | yes                               |
| measured from a kit NPC | returns                           |
| vanilla scripts         | 1339 calls in 190 of 1114 scripts |

## What it does

Sets the two radii of the NPC's collision body (its width and depth); the talk and touch areas, which follow the body, are rebuilt around it.

## Arguments

### `width` (Float)

### `depth` (Float)

The radii. Vanilla: the model's defaults times 0.8 (`getdefaultradiusw() * 0.8`), or literals such as `(1, 1)`, `(0.8, 0.8)`, `(0.6, 0.6)`, `(1.2, 1.25)`.

## Timing

Returns at once.

## In NPC Kit

Literals only: the vanilla `getdefaultradiusw() * 0.8` is arithmetic on a result, which a recorded script can't do. A bigger body also widens where the talk button appears.

## Used with

* [setscale](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/setscale.md) before it: the radii are taken with the actor's scale.
* [getdefaultradiusw](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/getdefaultradiusw.md).

## Example

A slim NPC in a narrow stall, its body (and the talk area around it) made smaller in `init`.

```lua
init = function()
    -- ... bind and motions ...
    npc.setradius_221(0.6, 0.6);
    npc.usecharhit(1);
    npc.setweight(-1);
    npc.set_ignore_hitgroup(1);
    -- ...
end,
```

## Pitfalls

* A body too big blocks doors and widens where the talk button comes up.
