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

# npc.touchradius

```lua
npc.touchradius(radius)
```

|                         |                                  |
| ----------------------- | -------------------------------- |
| id                      | `0x0051`                         |
| arguments               | 1: Float                         |
| in NPC Kit              | yes                              |
| measured from a kit NPC | returns                          |
| vanilla scripts         | 180 calls in 120 of 1114 scripts |

## What it does

Sets the radius of the NPC's touch area, the area that runs its touch trigger when the player walks into it.

## Arguments

### `radius` (Float)

The radius. Vanilla: `2` (123 calls), `5`, `3`.

## Timing

Returns at once.

## In NPC Kit

A kit NPC has no touch function, so the area runs nothing. Not tested on a kit NPC.

## Used with

* [talkradius](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/talkradius.md): the talk area.

## Example

The vanilla shape, in `init`. A kit NPC has no touch function, so the area runs nothing; it is here only for an NPC script ported as is.

```lua
init = function()
    -- ...
    npc.touchradius(2.0);
end,
```
