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

# npc.talkang

```lua
npc.talkang(angle)
```

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

## What it does

Sets how far to either side of the player's facing the NPC may be for the player to talk to it, in radians.

## Arguments

### `angle` (Float)

The half-angle. Vanilla: `1.5708` (379 calls, a quarter turn either side) and `6.2832` (123, any direction).

## Timing

Returns at once.

## In NPC Kit

`npc.talkang(6.2832)` lets the player talk to the NPC from any direction, facing it or not. Not tested on a kit NPC.

## Used with

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

## Example

A vendor at a round stall who can be talked to from any side: the angle is set in `init`, with the rest of the setup.

```lua
init = function()
    npc.setautorelax(1);
    npc.usecharhit(0);
    npc.bindp2_d4(0x006E0019, 4, 3);
    npc.stdmotionread(16);
    npc.stdmotionreadsync();
    npc.stdmotionplay_2c2(0x01000000, 0);
    npc.setoverheadicontype(0);
    npc.usemapid(1);
    npc.usecharhit(1);
    npc.setweight(-1);
    npc.set_ignore_hitgroup(1);
    npc.motionloop(1);
    npc.setpos2(29.36, -9.0, 68.65);
    npc.dir(1.676);
    npc.talkang(6.2832);        -- any direction; vanilla's other value, 1.5708, a quarter turn each side
    npc.fetchambient();
    npc.bonecalcforce(-1);
    npc.clearhidecomplete();
    npc.show();
    npc.showshadow();
end,
```

## Pitfalls

* Not tested on a kit NPC.
