Difference between revisions of "Collision end"

From Second Life Wiki
Jump to navigation Jump to search
m
(15 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{{LSL_Event|event_id=7|event_delay|event=collision_end|p1_type=integer|p1_name=num_detected|p1_desc|event_desc=Triggered when task stops colliding with another task|constants|spec|caveats|examples|helpers|also_header|also_events|also_functions|also_articles|also_footer|notes|mode|deprecated}}
{{Issues/SVC-3306}}{{LSL_Event|event_id=7|event_delay|event=collision_end
{{LSLC|Stub}}
|p1_type=integer|p1_name=num_detected|p1_desc
{{LSLC|Collision}}
|event_desc=Triggered when task stops colliding with another task
|constants
|spec
|caveats=*This event does not always trigger reliably.
* Phantom objects can never receive trigger collision events.
* <code>[[llVolumeDetect]]([[TRUE]])</code> 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.
 
|examples=<source lang="lsl2">collision_end(integer total_number)
{
    llOwnerSay("The collision I've had with " + llDetectedName(0) + "has ended.");
}</source>
|helpers
|also_header
|also_events={{LSL DefineRow||[[collision_start]]|}}
{{LSL DefineRow||[[collision]]|}}
|also_functions={{LSL DefineRow||[[llPassCollisions]]|}}
{{LSL DefineRow||[[llCollisionFilter]]|}}
{{LSL DefineRow||[[llCollisionSound]]|}}
{{LSL DefineRow||[[llCollisionSprite]]|}}
{{LSL DefineRow||[[llVolumeDetect]]|}}
|also_articles
|also_footer
|notes
|issues
|cat1=Collision
|cat2=Detected
|cat3=Collision Events
|cat4=Passable
}}

Revision as of 22:17, 1 January 2016

Description

Event: collision_end( integer num_detected ){ ; }

Triggered when task stops colliding with another task

• integer num_detected

Caveats

  • This event does not always trigger reliably.
  • 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.
All Issues ~ Search JIRA for related Bugs

Examples

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

See Also

Deep Notes

Issues

All Issues

~ Search JIRA for related Issues
   Add enumeration to llPassCollisions() to provide PASS_ALWAYS, PASS_IF_NOT_HANDLED, and PASS_NEVER as explicit options.
(Was: Collisions passed to parent REGARDLESS llPassCollisions(FALSE) in child)

Signature

event void collision_end( integer num_detected );