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

# npc.getdefaultrunspeed

```lua
npc.getdefaultrunspeed()
```

|                         |                                                                                  |
| ----------------------- | -------------------------------------------------------------------------------- |
| id                      | `0x0246`                                                                         |
| arguments               | 0                                                                                |
| result                  | float: goes to the very next call, or to `npc.lua(npc.getdefaultrunspeed(), fn)` |
| in NPC Kit              | yes                                                                              |
| measured from a kit NPC | returns                                                                          |
| vanilla scripts         | 811 calls in 125 of 1114 scripts                                                 |

## What it does

Gives the run speed authored for the NPC's model. A result; `0.0` with no model.

## Result

The speed, a float.

## Timing

Returns at once.

## In NPC Kit

`npc.setwalkspeed(npc.getdefaultrunspeed())` makes the next walks runs.

## Used with

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

## Example

```lua
flee = function()
    npc.setwalkspeed(npc.getdefaultrunspeed());   -- the model's own run
    npc.move(40.0, -9.0, 70.0);
    npc.setwalkspeed(npc.getdefaultwalkspeed());
end,
```
