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

# npc.attachoff

```lua
npc.attachoff()
```

|                         |                                 |
| ----------------------- | ------------------------------- |
| id                      | `0x00DA`                        |
| arguments               | 0                               |
| in NPC Kit              | yes                             |
| measured from a kit NPC | returns                         |
| vanilla scripts         | 266 calls in 76 of 1114 scripts |

## What it does

Unties the NPC from the actor it was tied to with [attach](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/attach.md), and puts it back where its own body stands, with its own heading.

## Timing

Returns at once.

## Used with

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

## Example

```lua
-- the end of the holder's talk: the prop goes back where its own actor stands
local sword = npc.on("npckit_0031")
sword.attachoff();
sword.hide();
```

## Pitfalls

* The prop reappears at its own position: hide it, or place it where it should drop.
