parent
855fa85ac1
commit
795b89e242
1 changed files with 18 additions and 9 deletions
|
@ -273,24 +273,33 @@ remove_sitter_props_by_pose_group(string msg)
|
||||||
|
|
||||||
remove_props_by_group(integer gp)
|
remove_props_by_group(integer gp)
|
||||||
{
|
{
|
||||||
list text;
|
string text = "";
|
||||||
string group = llList2String(sequential_prop_groups, gp);
|
string group = llList2String(sequential_prop_groups, gp);
|
||||||
integer i;
|
integer i;
|
||||||
for (; i < llGetListLength(prop_groups); i++)
|
for (; i < llGetListLength(prop_groups); i++)
|
||||||
{
|
{
|
||||||
if (llList2String(prop_groups, i) == group)
|
if (llList2String(prop_groups, i) == group)
|
||||||
{
|
{
|
||||||
text += [i];
|
text += "|" + (string)i;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
string command = "REM_INDEX";
|
if (text != "REM_INDEX")
|
||||||
if (llGetInventoryType(main_script) != INVENTORY_SCRIPT)
|
|
||||||
{
|
{
|
||||||
command = "REM_WORLD";
|
if (llGetInventoryType(main_script) == INVENTORY_SCRIPT)
|
||||||
}
|
{
|
||||||
if (text != [])
|
// This is [AV]sitA/B, send the command to all sitters
|
||||||
{
|
send_command("REM_INDEX" + text);
|
||||||
send_command(llDumpList2String([command] + text, "|"));
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// Presumed to be launched from [AV]menu; avoid removing attachments from others
|
||||||
|
send_command("REM_WORLD" + text); // this removes inworld props only
|
||||||
|
if (llList2Key(SITTERS, 0)) // OSS::if (osIsUUID(llList2Key(SITTERS, 0)) && llList2Key(SITTERS, 0) != NULL_KEY)
|
||||||
|
{
|
||||||
|
// send command privately to current sitter
|
||||||
|
llRegionSayTo((string)SITTERS, comm_channel, "REM_INDEX" + text);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue