Region wide delete on command

Thread Started By dr.fuxed

3226
1
  • 57 Vote(s) - 2.91 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Rate Thread
#1
here is a region wide system to delete your prims or add more commands to do anything you want.

to use (llregionsay_echo.lsl) wear this as hud or whatever.

then add (llregionsay_listner.lsl) to your object/s.

to use simply say die in chat and it will get echoed to llregionsay and your object hears the command and performs the action.



llregionsay_echo.lsl
Code:
string message;
default
{
    on_rez(integer sp)
    {
        llResetScript();
    }
    
    state_entry()
    {  if ( llGetAttached() )
       llRequestPermissions(llGetOwner(),PERMISSION_TAKE_CONTROLS);  
       llListen(0,"",NULL_KEY,"");

    }
   attach(key id)
    {
        if(id == llGetOwner())            
            llRequestPermissions(id,PERMISSION_TAKE_CONTROLS);
    }        
    run_time_permissions(integer perm)
    {
        if(perm & PERMISSION_TAKE_CONTROLS)
        {
            llTakeControls(CONTROL_FWD | CONTROL_BACK ,FALSE,TRUE);
        }
    }  

    listen(integer channel, string name, key id, string message)
    {
            llRegionSay(-5243312,message);
            llOwnerSay(message);
    }
        
}

llregionsay_listner.lsl

Code:
key owner;

default
{
    
     on_rez(integer start_param)
    {
       owner=llGetOwner();

     }
    state_entry()
    {
        llListen(-5243312,"",NULL_KEY,"");
    }
    
    listen(integer channel, string name, key id, string message)
    {
        if (llToLower(message) == "die")
        {
            llInstantMessage(owner,"Object died");
            llDie();
        }
    }
}
Reply




Messages In This Thread
Region wide delete on command - by dr.fuxed - 02-18-2013, 11:05 AM
RE: Region wide delete on command - by Schtonk - 06-18-2016, 01:44 AM

Forum Jump:

1 Guest(s)
Share this:

About Second Life Copybot

Second Life CopyBot Forum is a place where you can get items for Second Life and other vitual worlds for free. With our CopyBot viewers you can export and import any content from these virtual worlds and modify them in 3D software such as Blender, 3D studio Macx etc...