Skip to content
lsl.devlsl.devLSL Dev

collision_end

event
Event syntax
collision_end(
  1. 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

How to use
collision_end(integer num_detected)
{
}
  • Phantom objects can never receive trigger collision events.
  • llVolumeDetect(TRUE) objects get trigger collision_start and collision_end but not 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.
Example 1
collision_end(integer total_number)
{
llOwnerSay("The collision I've had with " + llDetectedName(0) + "has ended.");
}
Original wiki source

Some wiki templates and tables need their original context. View this article on the Second Life Wiki. Technical wording and examples are retained from the source; historical guidance may differ from current behavior.

From the Second Life Wiki

Community documentation adapted from Collision end, by Linden Research, Inc. and contributing residents.View contributors and history.

Imported wiki revision:

Licensed under CC BY-SA 3.0. Last wiki edit: .Formatting and links have been adapted for this site; API metadata follows the LSL definitions.