Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

wear item

Igar Roff
Registered User
Join date: 22 Feb 2009
Posts: 21
02-22-2009 05:57
I've made a wine glass and included animations etc. - now when I set it up it is worn in the right hand - whenever I wear it that works, but when others wear it - the majority of time it is worn in their left hand and they have to reset it - can I do something about this?
Cypher Ragu
[Mad Scientist]
Join date: 6 Jul 2008
Posts: 174
02-22-2009 10:39
That's odd. Usually, items automatically attatch to wherever they were attatched to last.


I suggest experimenting with llAttatchToAvatar (I'm pretty sure that's what the function is called, but I'm not positive. I rarely use it.)
_____________________
Life is a highway... And I just missed my exit.
Lennard Lopez
Registered User
Join date: 9 Oct 2007
Posts: 52
02-22-2009 11:36
This should do it......

CODE

on_rez(integer param) {
llRequestPermissions(llGetOwner(), PERMISSION_ATTACH);}
run_time_permissions(integer perm) {
if (perm & PERMISSION_ATTACH) llAttachToAvatar(ATTACH_RHAND);
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
02-22-2009 13:08
Unfortunately you can only attach to the avatar from in-world (NOT attached to your avatar). Once the object is actually attached, all you can do by script is detach it back to your inventory).