Difference between revisions of "Collision"

From Second Life Wiki
Jump to navigation Jump to search
m
Line 1: Line 1:
{{LSL_Event|event_id=6|event_delay|event=collision
{{Issues/SVC-3306}}{{LSL_Event|event_id=6|event_delay|event=collision
|p1_type=integer|p1_name=num_detected|p1_desc
|p1_type=integer|p1_name=num_detected|p1_desc
|event_desc=Triggered while task is colliding with another task
|event_desc=Triggered while task is colliding with another task
Line 32: Line 32:
|also_footer
|also_footer
|notes
|notes
|issues=
|issues
{{Issue|SVC-3306|{{LSLGC|Collision}}s passed to parent REGARDLESS [[llPassCollisions]]([[FALSE]]) in child|type=bug}}
|cat1=Collision
|cat1=Collision
|cat2=Detected
|cat2=Detected
|cat3
|cat3
|cat4}}
|cat4}}

Revision as of 09:51, 25 October 2008

Description

Event: collision( integer num_detected ){ ; }

Triggered while task is colliding with another task

• integer num_detected

Caveats


Examples

<lsl>//Will turn phantom when someone bumps into it if on the list

list access_list = ["Governor Linden"];

default {

   collision(integer num_detected)
   {
       if(~llListFindList(access_list, (list)llDetectedName(0)))
       {
           llSetStatus(STATUS_PHANTOM, TRUE);
       }
   }

}</lsl>

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( integer num_detected );