03-20-2016, 07:25 PM
Set the object to the group you want to share with, put in this script
Code:
default
{
state_entry()
{
llSay(0, "");
}
touch_start(integer total_number)
{
string object = llGetInventoryName(INVENTORY_OBJECT, 0);
if(object)
{
if(llSameGroup(llDetectedKey(0)))
{
llGiveInventory(llDetectedKey(0), object);
}
else
{
llSay(0, "Sorry, " + llKey2Name(llDetectedKey(0)) + " you must be a member of and wear: Insert name here");
}
}
else
{
llSay(0,"No object found.");
}
}
}