# land_collision

*LSL event*

```lsl
land_collision(vector pos)
```

- `vector pos`: Vector position of collision with the ground.

Triggered in the root prim when a physical object or attached avatar is colliding with the ground at position pos.

Triggered in the root when physical object or attached avatar is colliding with land

```lsl title="How to use" frame="terminal"
land_collision(vector pos)
{

}
```

## Examples

<details open>
<summary>Example 1</summary>

```lsl
//Will die on collision with land.
default
{
     land_collision(vector pos)
     {
          llDie();
     }
}
```

</details>

## Known issues

- [SVC-3304](https://jira.secondlife.com/browse/SVC-3304): presence of [collision](https://wiki.secondlife.com/wiki/Category:LSL_Collision)\* events influencing [land_collision](https://wiki.secondlife.com/wiki/Category:LSL_Land_Collision)\* events

## See also

### Functions

- [llGround](/functions/llGround/) — Gets the ground height

### Events

- [land_collision_start](/events/land_collision_start/)
- [land_collision_end](/events/land_collision_end/)

---

*Source: [Land collision](https://wiki.secondlife.com/wiki/Land_collision) on the Second Life Wiki. Content from the Second Life Wiki article Land collision (revision 1215017, 2023-10-12), CC BY-SA 3.0.*

---

From lsl.dev: https://lsl.dev/events/land_collision/
