Difference between revisions of "Collision"

From Second Life Wiki
Jump to navigation Jump to search
m
(<lsl> example)
Line 5: Line 5:
|spec
|spec
|caveats
|caveats
|examples=<pre>
|examples=<lsl>//Will turn phantom when someone bumps into it if on the list
//Will turn phantom when someone bumps into it if on the list
 
list access_list = ["Governor Linden"];
list access_list = ["Governor Linden"];


Line 15: Line 15:
         }
         }
     }
     }
}
}</lsl>
</pre>
|helpers
|helpers
|also_header
|also_header

Revision as of 21:44, 24 January 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

Signature

event void collision( integer num_detected );