collision_end
event
Event syntax
collision_end(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
collision_end(integer num_detected){
}Caveats
Section titled “Caveats”- Phantom objects can never receive trigger collision events.
llVolumeDetect(TRUE)objects get triggercollision_startandcollision_endbut notcollision() 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
Section titled “Examples”Example 1
collision_end(integer total_number){ llOwnerSay("The collision I've had with " + llDetectedName(0) + "has ended.");}Known issues
Section titled “Known issues”-
SVC-3306: Add enumeration to
llPassCollisions() to providePASS_ALWAYS,PASS_IF_NOT_HANDLED, andPASS_NEVERas explicit options.(Was: Collisions passed to parent REGARDLESS
llPassCollisions(FALSE) in child)
See also
Section titled “See also”Functions
Section titled “Functions”Events
Section titled “Events”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.