Detect a Ghost Prim

from Sindy Tsure:

Just a little script to tell you about the first thing it collides with. Useful for figuring out what a ghost prim is. Had to dig around for this last night so I figure I'll post it here - easier to find next time.

Put the script in a cube, move the cube a few meters over the suspected ghost, touch the cube.

default
{
     state_entry()
     {
          llSetStatus(STATUS_PHYSICS, FALSE);
     }

     touch_start(integer total_number)
     {
          llSetStatus(STATUS_PHYSICS, TRUE);
     }

     land_collision(vector position)
     {
          llOwnerSay ("hit land! no objects here..");
          llResetScript();
     }
     
     collision_start(integer count)
     {

          // todo: notice llDO returing a key and spit out web link to profile instead
          llOwnerSay ("hit '" + llDetectedName(0) + "' owned by " +
               llKey2Name((llDetectedOwner(0))));
          llResetScript();
     }
}

 

Flash Scratch to SL - Your Scripting Tool

Script ImageNeed to write a LSL script and don't know how to script?  I know I hate trying to get my head around LSLS when I an in a time crunch. So why not give Flash Scratch a try! Its a great tool for learning and scoding your own scripts for Second Life without having to pay someone to do it and without a crash course in LSL

A Huge thanks to John Bennet of ATLAS Institute at University of Colorado and Eric Rosenbaum at MIT for writing Scratch for SL to begin with.

Read more: Flash Scratch to SL - Your Scripting Tool