# RC_GET_ROOT_KEY

*LSL constant*

```lsl
integer RC_GET_ROOT_KEY = 2;
```

Flag used with llCastRay that returns the key of the hit object's root prim instead of the hit child prim.

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

## See also

### Functions

- [llCastRay](/functions/llCastRay/)

---

*Source: [RC GET ROOT KEY](https://wiki.secondlife.com/wiki/RC_GET_ROOT_KEY) on the Second Life Wiki. Content from the Second Life Wiki article RC GET ROOT KEY (revision 1160636, 2012-01-05), CC BY-SA 3.0.*

---

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