Collision

From Second Life Wiki
Revision as of 13:20, 22 May 2007 by Cow Taurog (talk | contribs) (adding example)
Jump to navigation Jump to search

Description

Event: collision( integer num_detected ){ ; }

Triggered while task is colliding with another task

• integer num_detected

Examples

//Will turn phantom when someone bumps into it if on the list
list access_list = ["Governor Linden"];
collision(integer num_detected)
    {
        if(llListFindList(access_list, (list)llKey2Name(llDetectedKey(0))) != -1)
        {
            llSetStatus(STATUS_PHANTOM, TRUE);
        }
    }

See Also

Deep Notes

Signature

event void collision( integer num_detected );