|
|
|
Here is a better script with an "off" command and without the typo in the one above:
///////////////// default listen(integer channel, string name, key id, string msg) else { llSetColor(<1.0, 0.0, 0.0>, ALL_SIDES); llMoveToTarget(<175.0, 175.0, 55.0>, 0.05); } } } //////////////// This issue has been bulk changed to fix pending.
This has been fixed and deployed (weeks ago). Incidentally, as of this comment the corresponding internal bug for this is still open because when trying to move the avatar up 1m it only goes up 0.75 meters, however I'm closing this one because the bug as described in the title is fixed.
|
||||||||||||||||||||||||||||||||||||||||||||
Ideally, a bug like this would have a "repro recipe" in the comments so I'll provide a candidate recipe:
(1) put the following script (modified from
SVC-734) on an attachment (note, this script is untested, but is probably almost working)://///////////////
integer On;
default
{ llSetColor(<1.0, 1.0, 1.0>, ALL_SIDES); llListen(0, "", llGetOwner(), ""); }{
state_entry()
listen(interger channel, string name, key id, string msg)
{ llSetColor(<0.0, 1.0, 0.0>, ALL_SIDES); llMoveToTarget(<175.0, 175.0, 50.0>, 0.05); }{
if (msg == "toggle")
{
On = !On;
if (!On)
else
{ llSetColor(<1.0, 0.0, 0.0>, ALL_SIDES); llMoveToTarget(<175.0, 175.0, 55.0>, 0.05); }}
}
}
////////////////
(2) stand somewhere around <175, 175, whatever>
(3) let your avatar come to a stop
(4) type the word "toggle" into chat
--> the avatar should move to one of the two "move-to" states