Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Changing attachment point

Zozo Plympton
Registered User
Join date: 26 Oct 2006
Posts: 26
11-30-2006 13:35
Hi,

Is it possible to change the attachement point of an attached object on a spoken command.
E.G. : A sword is attached to the Hip. When the user says: draw (or whatever) the sword should change the attachement point and move to the hand.

For some reason seemingly the llAttachToAvatar() doesn't do the trick.

Anybody any ideas?
Winter Ventura
Eclectic Randomness
Join date: 18 Jul 2006
Posts: 2,579
11-30-2006 13:48
I don't think this can be done the way you're thinking.

What I'd suggest, is make 2 swords. Mount one to the hand, and one to the hip. One that is set to 100% invisible. Now, using a script in each sword that listens for your keyword. When it hears the keyword, have the one in your hand turn visible, and the one on your hip turn invisible (you can even run a little animation at this time to mimick drawing it.. if you get the timing right, you could animate to hip, switch swords, and animate away and it would look for all the woruld, like you actually drew it.)

Another keyword, switch em back.

This is how most guns, swords, whips, and soforth are "drawn or holstered"

If you want proof, hit "CTRL-ALT-T" some time when you're around people with guns on their hips or swords on their backs. If the item is drawable.. odds are there will be an invisible one in their hands.
_____________________

● Inworld Store: http://slurl.eclectic-randomness.com
● Website: http://www.eclectic-randomness.com
● Twitter: @WinterVentura
Sherri Delling
Registered User
Join date: 21 Aug 2006
Posts: 1
12-19-2006 10:41
I too have had this problem with my sword. I ended up doing two swords as suggested and that works out great. I am now trying how to figure how to link the two together so I don't have to wear two swords.