# LINK_THIS

*LSL constant*

```lsl
integer LINK_THIS = -4;
```

Constant groups: [Link](/constants/groups/Link/), [Links](/constants/groups/Links/)

Targets the prim the script resides in.

The opposite flag of this is [LINK_ALL_OTHERS](/constants/LINK_ALL_OTHERS/).

## Known issues

- [SVC-600](https://jira.secondlife.com/browse/SVC-600): [llGetLinkKey](/functions/llGetLinkKey/) returns the wrong result when passed [LINK_THIS](/constants/LINK_THIS/)
- [SVC-3510](https://jira.secondlife.com/browse/SVC-3510): [LINK\_\*](https://wiki.secondlife.com/wiki/Category:LSL_Link) [flags](https://wiki.secondlife.com/wiki/LSL_Glossary#flag) do not work with [llBreakLink](/functions/llBreakLink/)
- [SVC-3199](https://jira.secondlife.com/browse/SVC-3199): `llSetLinkTexture(LINK_THIS, foo, bar)` does not work for non-full-perm textures.

## See also

### Constants

- [LINK_ALL_CHILDREN](/constants/LINK_ALL_CHILDREN/)
- [LINK_ALL_OTHERS](/constants/LINK_ALL_OTHERS/)
- [LINK_ROOT](/constants/LINK_ROOT/)
- [LINK_SET](/constants/LINK_SET/)

### Functions

- [llBreakLink](/functions/llBreakLink/)
- [llGetLinkKey](/functions/llGetLinkKey/)
- [llGetLinkName](/functions/llGetLinkName/)
- [llMessageLinked](/functions/llMessageLinked/)
- [llSetLinkAlpha](/functions/llSetLinkAlpha/)
- [llSetLinkColor](/functions/llSetLinkColor/)
- [llSetLinkPrimitiveParamsFast](/functions/llSetLinkPrimitiveParamsFast/)

---

*Source: [LINK THIS](https://wiki.secondlife.com/wiki/LINK_THIS) on the Second Life Wiki. Content from the Second Life Wiki article LINK THIS (revision 1215237, 2023-10-29), CC BY-SA 3.0.*

---

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