# collision_end

*LSL event*

```lsl
collision_end(integer num_detected)
```

- `integer num_detected`: Total number of detected colliders (usable with llDetected* functions).

Triggered when an avatar or another object stops colliding with the object containing the script. Passes num_detected, representing the number of detected collisions.

Triggered when task stops colliding with another task

```lsl title="How to use" frame="terminal"
collision_end(integer num_detected)
{

}
```

## Caveats

- Phantom objects can never receive trigger collision events.
- `llVolumeDetect(TRUE)` objects get trigger [collision_start](/events/collision_start/) and [collision_end](/events/collision_end/) but not [collision](/events/collision/)() events.
- A collision with a hovering avatar does not trigger collisions, unless the avatar turns or moves.
- Only a physical object will get collision events from colliding with a non-physical object.

## Examples

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

```lsl
collision_end(integer total_number)
{
    llOwnerSay("The collision I've had with " + llDetectedName(0) + "has ended.");
}
```

</details>

## Known issues

- [SVC-3306](https://jira.secondlife.com/browse/SVC-3306): Add enumeration to [llPassCollisions](/functions/llPassCollisions/)() to provide [PASS_ALWAYS](/constants/PASS_ALWAYS/), [PASS_IF_NOT_HANDLED](/constants/PASS_IF_NOT_HANDLED/), and [PASS_NEVER](/constants/PASS_NEVER/) as explicit options.

  (Was: [Collision](https://wiki.secondlife.com/wiki/Category:LSL_Collision)s passed to parent REGARDLESS [llPassCollisions](/functions/llPassCollisions/)([FALSE](/constants/FALSE/)) in child)

## See also

### Functions

- [llPassCollisions](/functions/llPassCollisions/)
- [llCollisionFilter](/functions/llCollisionFilter/)
- [llCollisionSound](/functions/llCollisionSound/)
- [llVolumeDetect](/functions/llVolumeDetect/)

### Events

- [collision_start](/events/collision_start/)
- [collision](/events/collision/)

---

*Source: [Collision end](https://wiki.secondlife.com/wiki/Collision_end) on the Second Life Wiki. Content from the Second Life Wiki article Collision end (revision 1216386, 2024-03-21), CC BY-SA 3.0.*

---

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