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

# npc.lookat\_maxangle\_limit\_lock

```lua
npc.lookat_maxangle_limit_lock()
```

|                         |                                |
| ----------------------- | ------------------------------ |
| id                      | `0x0433`                       |
| arguments               | 0                              |
| in NPC Kit              | yes                            |
| measured from a kit NPC | returns                        |
| vanilla scripts         | 34 calls in 15 of 1114 scripts |

## What it does

Puts back the limit on how far the NPC's head can turn when it looks at something: at the model's own limits the head stops turning.

## Timing

Returns at once; the limit stays on until [lookat\_maxangle\_limit\_unlock](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/lookat_maxangle_limit_unlock.md).

## In NPC Kit

A press in the editor's Head group.

## Used with

* [lookat\_maxangle\_limit\_unlock](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/lookat_maxangle_limit_unlock.md): vanilla locks again in a scene's release function, next to [motioncancel](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/motioncancel.md), [setcharclipone](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/setcharclipone.md) and [bindoff](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/bindoff.md).

## Example

```lua
release = function()
    npc.lookatoff();
    npc.lookat_maxangle_limit_lock();
    npc.motioncancel();
end,
```
