From 2579e3c991e1338c9239d20a3bd2c07e9762bdd6 Mon Sep 17 00:00:00 2001 From: onefang Date: Mon, 6 Sep 2021 22:14:03 +1000 Subject: Only change size if we are actually the vehicle prim. --- 1AOor2.lsl | 33 ++++++++++++++++++++------------- 1 file changed, 20 insertions(+), 13 deletions(-) diff --git a/1AOor2.lsl b/1AOor2.lsl index b4c78dd..e167cd6 100644 --- a/1AOor2.lsl +++ b/1AOor2.lsl @@ -1561,22 +1561,29 @@ checkSitters(integer del) // S(llKey2Name(llList2Key(Avs, lnk + aKEY)) + " is number " + llList2String(Avs, lnk + aNUM)); for (lnk = 0; lnk < l; lnk += aSTRIDE) updateAvatar(llList2Key(Avs, lnk + aKEY)); + + if ("1AOor2 prim" == llGetObjectName()) { - if (del) + llSetSitText(Sit0Text); llSetTouchText("menu"); llSetClickAction(CLICK_ACTION_SIT); + llSetText(HoverText, <1.0, 1.0, 1.0>, 1.0); + if (0 == m) { - llSleep(5.0); - d("No one left sitting on me."); - if (NULL_KEY != BossKey) die(); + if (del) + { + llSleep(5.0); + d("No one left sitting on me."); + if (NULL_KEY != BossKey) die(); + } + llSetTouchText(""); + llSetLinkPrimitiveParamsFast(Link, [PRIM_SIZE, <1.0, 1.0, 1.0>, PRIM_COLOR, <255, 199, 17>, 0.5]); + } + else if (1 == m) + llSetLinkPrimitiveParamsFast(Link, [PRIM_SIZE, <1.0, 1.0, 1.0>, PRIM_COLOR, <255, 199, 17>, 0.25]); + else if (2 == m) + { + llSetSitText(Sit1Text); llSetClickAction(CLICK_ACTION_TOUCH); + llSetLinkPrimitiveParamsFast(Link, [PRIM_SIZE, <0.01, 0.01, 0.01>, PRIM_COLOR, <255, 199, 17>, 0.0]); } - llSetTouchText(""); - llSetLinkPrimitiveParamsFast(Link, [PRIM_SIZE, <1.0, 1.0, 1.0>, PRIM_COLOR, <255, 199, 17>, 0.5]); - } - else if (1 == m) - llSetLinkPrimitiveParamsFast(Link, [PRIM_SIZE, <1.0, 1.0, 1.0>, PRIM_COLOR, <255, 199, 17>, 0.25]); - else if (2 == m) - { - llSetSitText(Sit1Text); llSetClickAction(CLICK_ACTION_TOUCH); - llSetLinkPrimitiveParamsFast(Link, [PRIM_SIZE, <0.01, 0.01, 0.01>, PRIM_COLOR, <255, 199, 17>, 0.0]); } return; } -- cgit v1.1