# OBJECT_ROOT

*LSL constant*

```lsl
integer OBJECT_ROOT = 18;
```

Flag used with llGetObjectDetails to get the ID of the root prim. For an avatar, returns the root prim of the linkset they are sitting on (or the avatar's own ID if not sitting).

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

## See also

### Functions

- [llGetObjectDetails](/functions/llGetObjectDetails/)

---

*Source: [OBJECT ROOT](https://wiki.secondlife.com/wiki/OBJECT_ROOT) on the Second Life Wiki. Content from the Second Life Wiki article OBJECT ROOT (revision 1174585, 2012-11-19), CC BY-SA 3.0.*

---

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