mirror of
https://github.com/nPoseTeam/nPose-V3.git
synced 2026-08-14 00:57:56 +00:00
-use a different channel for adjuster and props to lower script time
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user