# RC_MAX_HITS

*LSL constant*

```lsl
integer RC_MAX_HITS = 3;
```

Flag used with llCastRay to set the maximum number of hits to return (up to 256). To avoid performance issues, keep this value small.

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

## See also

### Functions

- [llCastRay](/functions/llCastRay/)

---

*Source: [RC MAX HITS](https://wiki.secondlife.com/wiki/RC_MAX_HITS) on the Second Life Wiki. Content from the Second Life Wiki article RC MAX HITS (revision 1160629, 2012-01-05), CC BY-SA 3.0.*

---

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