> 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_unlock.md).

# npc.lookat\_maxangle\_limit\_unlock

```lua
npc.lookat_maxangle_limit_unlock()
```

|                         |                                |
| ----------------------- | ------------------------------ |
| id                      | `0x0434`                       |
| arguments               | 0                              |
| in NPC Kit              | yes                            |
| measured from a kit NPC | returns                        |
| vanilla scripts         | 79 calls in 20 of 1114 scripts |

## What it does

Takes off the limit on how far the NPC's head can turn when it looks at something, so a look at a target far to the side follows it all the way.

## Timing

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

## In NPC Kit

A press in the editor's Head group. Which state a freshly bound model starts in is not confirmed.

## Used with

* [lookatat](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/lookatat.md), [lookata](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/lookata.md): vanilla takes the limit off right before a look at an actor.
* [lookat\_maxvelr\_limit\_unlock](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/lookat_maxvelr_limit_unlock.md): vanilla often takes both limits off together.
* [lookat\_maxangle\_limit\_lock](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/lookat_maxangle_limit_lock.md): back on, in the cleanup.

## Example

```lua
callOut = function()
    npc.lookat_maxangle_limit_unlock();
    npc.lookatat(npc.actor("npckit_0022"), 25);   -- may be far to the side
    npc.wait(75);
    npc.lookatoff();
    npc.lookat_maxangle_limit_lock();
end,
```

## Pitfalls

* Lock it again when the scene ends: vanilla never leaves it off past the scene's release function.
