Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

ATTACH_RPEC / ATTACH_LPEC bug?

Ziggy Puff
Registered User
Join date: 15 Jul 2005
Posts: 1,143
08-26-2007 23:39
Can someone confirm this? Put this in an object:

CODE

default
{
touch_start(integer num)
{
llOwnerSay((string)llGetAttached() + " " + (string)ATTACH_RPEC);
}
}


Now wear it on your right pec and see what happens. Ditto for ATTACH_LPEC and wearing it on the left pec. I see the values reversed, i.e. when it's worn on the left pec, llGetAttached returns the value of ATTACH_RPEC, and vice versa.

I'd be pretty surprised if this has always been this way and no one noticed it, so I'd like to double check that I'm not doing something wrong and totally not noticing it :)
Day Oh
Registered User
Join date: 3 Feb 2007
Posts: 1,257
08-26-2007 23:47
Confirmed. Well done!
_____________________
Ziggy Puff
Registered User
Join date: 15 Jul 2005
Posts: 1,143
08-26-2007 23:57
Thanks. I'll submit a JIRA issue. Though the bummer is that if people have already written scripts to get around this, fixing it will break those. Similarly, I'm in the middle of a project that needs this, and I don't know if I should use the reversed values, or wait and see if it gets fixed, or... :)
Lyn Mimistrobell
(waiting)
Join date: 11 Jan 2007
Posts: 179
08-27-2007 04:37
You should never assume a bug will exist later. Always assume a bug may be fixed at any time...

<sarcasm>with LL assume the bug will be replaced by another bug somewhere next year...</sarcasm>
Day Oh
Registered User
Join date: 3 Feb 2007
Posts: 1,257
08-27-2007 14:01
It would be nice if we could check out older versions of the viewer to see if it's always been reversed
_____________________
Destiny Niles
Registered User
Join date: 23 Aug 2006
Posts: 949
08-27-2007 14:13
Depends on your point of view. Your RPEC from you looking or the RPEC from someone looking at you. So when you put on something it's your RPEC (attach), but when you look at someone (getattach) its the LPEC. :). Linden logic 101
Boss Spectre
Registered User
Join date: 5 Sep 2005
Posts: 229
08-28-2007 01:45
Well wouldn't the right pec be on the same side as the right arm?
Ziggy Puff
Registered User
Join date: 15 Jul 2005
Posts: 1,143
08-28-2007 10:38
I think Destiny was joking :)