# PERMISSION_ATTACH

*LSL constant*

```lsl
integer PERMISSION_ATTACH = 0x00020;
```

Runtime permission that allows the script to successfully attach to or detach from the agent using llAttachToAvatar.

Constant groups: [ScriptPermission](/constants/groups/ScriptPermission/)

## See also

### Functions

- [llAttachToAvatar](/functions/llAttachToAvatar/)
- [llAttachToAvatarTemp](/functions/llAttachToAvatarTemp/)
- [llDetachFromAvatar](/functions/llDetachFromAvatar/)
- [llGetPermissions](/functions/llGetPermissions/) — Get the permissions granted
- [llRequestPermissions](/functions/llRequestPermissions/) — Request permissions

### Events

- [run_time_permissions](/events/run_time_permissions/) — Permission receiving event

---

*Source: [PERMISSION ATTACH](https://wiki.secondlife.com/wiki/PERMISSION_ATTACH) on the Second Life Wiki. Content from the Second Life Wiki article PERMISSION ATTACH (revision 1171308, 2012-08-01), CC BY-SA 3.0.*

---

From lsl.dev: https://lsl.dev/constants/PERMISSION_ATTACH/
