Collision

From Second Life Wiki
Revision as of 10:35, 25 October 2008 by Strife Onizuka (talk | contribs)
Jump to navigation Jump to search

Description

! Event: collision( integer num_detected ){ ; }

Triggered while task is colliding with another task

• integer num_detected

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
   Collisions passed to parent REGARDLESS llPassCollisions(FALSE) in child

Signature

event void collision( integer num_detected );