Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Sheathing and Drawing a Sword

Testament Languish
Tainted Soul
Join date: 18 Sep 2005
Posts: 43
09-25-2005 19:39
There a script that does sheathing and drawing of a sword? If so could anyone hook meh up?
Keknehv Psaltery
Hacker
Join date: 11 Apr 2005
Posts: 1,185
09-25-2005 20:06
To accomplish something like this, you would need a rather precise animation, and two different sword attachments. They would have to switch in and out of visibility using transparency.

You could probably accomplish it using the described method, but it might be buggy. I haven't actually seen any system which does this.

It's possible, but the road will be long and painful.
Aliasi Stonebender
Return of Catbread
Join date: 30 Jan 2005
Posts: 1,858
09-25-2005 20:49
From: Keknehv Psaltery
To accomplish something like this, you would need a rather precise animation, and two different sword attachments. They would have to switch in and out of visibility using transparency.

You could probably accomplish it using the described method, but it might be buggy. I haven't actually seen any system which does this.

It's possible, but the road will be long and painful.


Actually, Ashes Katana (by Esprite Xavier) uses just this, and it works quite well.
_____________________
Red Mary says, softly, “How a man grows aggressive when his enemy displays propriety. He thinks: I will use this good behavior to enforce my advantage over her. Is it any wonder people hold good behavior in such disregard?”
Anything Surplus Home to the "Nuke the Crap Out of..." series of games and other stuff
Testament Languish
Tainted Soul
Join date: 18 Sep 2005
Posts: 43
09-26-2005 03:23
Sounds like fun...hope i can do it!
Osgeld Barmy
Registered User
Join date: 22 Mar 2005
Posts: 3,336
09-26-2005 17:44
i dunno about all that transparency bit, seems like 2 animations and some control scheme ... altho i wouldnt wanna do it ;)
Kazefuri Backbite
Major Kazenov
Join date: 13 Sep 2005
Posts: 8
10-05-2005 09:57
Hmm... I was trying to accomplish this today, and after frustrating myself a bit with the attaching functions, i decided to do the following simple scripts on my objects:

1) The sword: whispers "attach" on a channel when it gets attached and "detach" when it gets detached

2) The sheath (with a visible sword handle): listens for the sword and uses linkmessages to hide the swordy prims when the sword is in hand, and again show them when it's detached.

Not too showy a way, might perhaps be enhanced with some delays and sworddrawing and -sheathing animations, but it works nicely enough for me, for now. ^_^