# llGroundSlope

*LSL function*

```lsl
vector vector llGroundSlope(vector offset);
```

- `vector offset`: Offset relative to the prim's position, expressed in local coordinates.

- Returns: `vector`
- Energy: 10

Returns a vector representing the ground slope directly below the prim's position offset by the vector offset.

Returns a [vector](https://wiki.secondlife.com/wiki/vector) that is the ground slope below the object [position](/functions/llGetPos/) + **offset**

```lsl title="How to use" frame="terminal"
vector result = llGroundSlope(ZERO_VECTOR);
```

## History

Added in [SL 0.9.0](http://secondlife.wikia.com/wiki/Version_0.9.0)

## See also

### Functions

- [llGround](/functions/llGround/) — Gets the ground height
- [llGroundContour](/functions/llGroundContour/) — Gets the ground contour
- [llGroundNormal](/functions/llGroundNormal/) — Gets the ground normal

---

*Source: [LlGroundSlope](https://wiki.secondlife.com/wiki/LlGroundSlope) on the Second Life Wiki. Content from the Second Life Wiki articles LlGroundSlope (revision 1183548, 2013-11-13) and Template:LSL Function/offset (revision 1169422, 2012-06-18), CC BY-SA 3.0.*

---

From lsl.dev: https://lsl.dev/functions/llGroundSlope/
