Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Attachment points...

Argent Stonecutter
Emergency Mustelid
Join date: 20 Sep 2005
Posts: 20,263
11-14-2005 16:23
Let's say I'm an object that's going to be attached, like a pair of spectacles.

OK, I know how to tell what point I'm attached to when I'm attached with llGetAttached().

How do I find out what attachment point I'll *be* attached to when someone selects "wear"?

How do I find out or change the offset and rotation that the attachment is going to be set to?
Kayla Stonecutter
Scripting Oncalupen
Join date: 9 Sep 2005
Posts: 224
11-14-2005 20:34
When someone chooses 'Wear', it'll be put on the last place it was attached to, with the last set offset and rotation.
_____________________
Argent Stonecutter
Emergency Mustelid
Join date: 20 Sep 2005
Posts: 20,263
11-15-2005 08:48
From: Kayla Stonecutter
When someone chooses 'Wear', it'll be put on the last place it was attached to, with the last set offset and rotation.
Right, but how do you find that out or change it from a script?
Eloise Pasteur
Curious Individual
Join date: 14 Jul 2004
Posts: 1,952
11-15-2005 09:29
http://secondlife.com/badgeo/wakka.php?wakka=llGetAttached will tell you where it was attached. llGetRot() and llGetPos() will tell you where it was.

http://secondlife.com/badgeo/wakka.php?wakka=llAttachToAvatar demands a location to attach the the object to...
Argent Stonecutter
Emergency Mustelid
Join date: 20 Sep 2005
Posts: 20,263
11-15-2005 09:36
From: Eloise Pasteur
http://secondlife.com/badgeo/wakka.php?wakka=llGetAttached will tell you where it was attached. llGetRot() and llGetPos() will tell you where it was.
Doesn't that only work while it's attached? When it's rezzed in-world it always seems to be the same way up, and of course the position is wherever it was rezzed to.
Strife Onizuka
Moonchild
Join date: 3 Mar 2004
Posts: 5,887
11-15-2005 12:58
You can't find out which attach point it will be using.
_____________________
Truth is a river that is always splitting up into arms that reunite. Islanded between the arms, the inhabitants argue for a lifetime as to which is the main river.
- Cyril Connolly

Without the political will to find common ground, the continual friction of tactic and counter tactic, only creates suspicion and hatred and vengeance, and perpetuates the cycle of violence.
- James Nachtwey
Argent Stonecutter
Emergency Mustelid
Join date: 20 Sep 2005
Posts: 20,263
11-15-2005 13:13
From: Strife Onizuka
You can't find out which attach point it will be using.
And position/offset?
Doc Nerd
Registered User
Join date: 7 Oct 2005
Posts: 20
11-15-2005 17:39
I think this is a "no soup" situation Argent.