-use a different channel for adjuster and props to lower script time

This commit is contained in:
LeonaMorro
2019-02-08 08:33:09 +01:00
parent 17ba94a146
commit 5b571b16c3
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -168,7 +168,7 @@ default {
llSetText("", ZERO_VECTOR, 0.0);
IsAnimeshAdjuster=llGetLinkNumber(); //a plain adjuster has only 1 prim, an animesh adjuster is a linkset of 2 prims
MyParentId=llList2Key(llGetObjectDetails(llGetKey(), [OBJECT_REZZER_KEY]), 0);
AdjusterChannel=(integer)("0x7F" + llGetSubString((string)MyParentId, 0, 5));
AdjusterChannel=(integer)("0x7F" + llGetSubString((string)MyParentId, 1, 6));
llListen(AdjusterChannel, "", "", "");
llRegionSayTo(MyParentId, AdjusterChannel, addCommand("", ["AS_UPDATE_REQUEST"]));
getParentPos();
+2 -2
View File
@@ -361,7 +361,7 @@ default {
GRID_TYPE_IW * (simChannel==GRID_TYPE_IW_STRING)
;
SecondLifeDetected=llGetEnv("sim_channel")=="Second Life Server";
AdjusterChannel=(integer)("0x7F" + llGetSubString((string)llGetKey(), 0, 5));
AdjusterChannel=(integer)("0x7F" + llGetSubString((string)llGetKey(), 1, 6));
}
listen(integer channel, string name, key id, string message) {
@@ -702,6 +702,6 @@ default {
}
}
on_rez(integer start_param) {
AdjusterChannel=(integer)("0x7F" + llGetSubString((string)llGetKey(), 0, 5));
AdjusterChannel=(integer)("0x7F" + llGetSubString((string)llGetKey(), 1, 6));
}
}