Give to Child Prims

Thread Started By deadpool

2145
0
  • 33 Vote(s) - 2.76 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Rate Thread
#1
What is it?

Something to aid in the task of dropping the same item into multiple prims (linked set). It allows transfer of any SL inventory items, however any scripts sent to child primitives will need to be re-rezzed/set running. It works by voice commands, you simply say what you want sent to all child prims.

How-to/Info:

•Copy paste the script below into a new script inworld.
•Save it & then put the script into an object (if not there already).
•Example voice command: /1 something

PHP Code:
// This will give items to all child prims in the linked set
// say name of item on given channel, done.
// See http://www.lslwiki.net/lslwiki/wakka.php?wakka=llSetRemoteScriptAccessPin
// for loading scripts as running state
 
integer listenID;
integer cmd_channel 1;
 
default { 
//
    
state_entry(){  
        
listenID llListen(cmd_channel"",llGetOwner(),"");
    }
//
    
on_rez(integer d){
        
llResetScript();
    }
//
    
listen(integer channelstring namekey idstring msg){
        if(
channel == cmd_channel){
            
integer i;
            for (
2llGetNumberOfPrims() + 1i++){
                
llGiveInventory(llGetLinkKey(i), msg);
            }
            
llOwnerSay("If you copied a script to child prims, you will need to re-rez an set script to running.");
            
//llRemoveInventory(llGetScriptName());
        
}
    }
//    

Reply




Possibly Related Threads…
Thread Author Replies Views Last Post
  Give Inventory Contents By Password ☠ MosDef ☠ 0 2,194 02-20-2013, 08:59 PM
Last Post: ☠ MosDef ☠

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...