From 5ce409bac193fec84352d2778e659fee2908a628 Mon Sep 17 00:00:00 2001 From: onefang Date: Mon, 6 Sep 2021 22:17:42 +1000 Subject: More emotes! Also, last commit included the single poses code. --- 1AOor2.lsl | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/1AOor2.lsl b/1AOor2.lsl index 26cc845..eae6b72 100644 --- a/1AOor2.lsl +++ b/1AOor2.lsl @@ -433,6 +433,12 @@ integer doThing(key id, string button, string fr, string cmd, string data, integ if ("" == Posed) // Coz we don't want the checkAO regular SYNC R to break us out of the pose. checkSitters(TRUE); } + else if ("EMOTE" == cmd) + { + f = findAvatar(data); + if (-1 != f) + doEmote(Pose, f); + } else if ("POSE" == cmd) { list p = llParseStringKeepNulls(data, [","], []); @@ -1051,6 +1057,9 @@ savePose(string name, string anim, string exp, string posRot) exp = llList2String(Poses, f + psEMOTE); } else if ("" == posRot) posRot = llList2String(Poses, f + psPOSROT); + if (NULL_KEY == exp) exp = ""; + if (NULL_KEY == posRot) posRot = ""; + if (-1 != f) Poses = llListReplaceList(Poses, [name, anim, exp, posRot], f, f + psSTRIDE - 1); else Poses += [name, anim, exp, posRot]; -- cgit v1.1