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

# npc.setreachr

```lua
npc.setreachr(reach)
```

|                         |                                 |
| ----------------------- | ------------------------------- |
| id                      | `0x0076`                        |
| arguments               | 1: Float                        |
| in NPC Kit              | yes                             |
| measured from a kit NPC | returns                         |
| vanilla scripts         | 546 calls in 60 of 1114 scripts |

## What it does

Sets how close the NPC's walk must come to its target to stop. With `0` the walk ends with the NPC placed exactly on the point.

## Arguments

### `reach` (Float)

The distance. Vanilla: `0.1` (314 calls), `0.25`, `0.5`, `0.3`, `0`.

## Timing

Returns at once; the next walks use it.

## In NPC Kit

A walk to a crowded or awkward point that never quite arrives: a larger reach lets `move` end.

## Used with

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

## Example

A walk to a point crowded by other bodies: a reach of `0.5` lets the walk end close enough.

```lua
toStall = function()
    npc.setreachr(0.5);
    npc.aturn(31.0, -9.0, 66.0);
    npc.move(31.0, -9.0, 66.0);
    npc.setreachr(0.1);         -- vanilla's usual value back
end,
```
